Title: HTML inside accordion shortcode
Last modified: November 10, 2016

---

# HTML inside accordion shortcode

 *  [webbernaut](https://wordpress.org/support/users/webbernaut/)
 * (@webbernaut)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/html-inside-accordion-shortcode/)
 * Im trying to add a list item inside the accordion shortcode but it seems to break
   it.
    Is this an isolated incident?
 * I think in order to contain html inside a shortcode you have to wrap it in do_shortcode(
   $content) as the output in the shortcode PHP code.
 * That or maybe ob_start(); and return ob_get_clean(); will fix it?

The topic ‘HTML inside accordion shortcode’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/easy-foundation-shortcodes_73bdce.
   svg)
 * [Easy Foundation Shortcode](https://wordpress.org/plugins/easy-foundation-shortcodes/)
 * [Support Threads](https://wordpress.org/support/plugin/easy-foundation-shortcodes/)
 * [Active Topics](https://wordpress.org/support/plugin/easy-foundation-shortcodes/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/easy-foundation-shortcodes/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/easy-foundation-shortcodes/reviews/)

## Tags

 * [html](https://wordpress.org/support/topic-tag/html/)
 * [shortcode](https://wordpress.org/support/topic-tag/shortcode/)

 * 0 replies
 * 1 participant
 * Last reply from: [webbernaut](https://wordpress.org/support/users/webbernaut/)
 * Last activity: [9 years, 7 months ago](https://wordpress.org/support/topic/html-inside-accordion-shortcode/)
 * Status: not resolved