Title: HTML inside shortcode attribute
Last modified: August 30, 2016

---

# HTML inside shortcode attribute

 *  Resolved [EOSlover](https://wordpress.org/support/users/eoslover/)
 * (@eoslover)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/html-inside-shortcode-attribute/)
 * Hi, I’m trying to add a **<span>** to submit button.
 * `<?php echo do_shortcode('[yikes-mailchimp form="1" submit="Sign me up! <span
   >►</span>"]'); ?>`
 * However, the **<span>** is parsed out as text instead of HTML. Is there a way
   that can be done?
 * [https://wordpress.org/plugins/yikes-inc-easy-mailchimp-extender/](https://wordpress.org/plugins/yikes-inc-easy-mailchimp-extender/)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [Evan Herman](https://wordpress.org/support/users/eherman24/)
 * (@eherman24)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/html-inside-shortcode-attribute/#post-6656807)
 * Hi EOSlover,
 * At the moment it’s not possible, but I am going to push out an update later today,
   v6.0.2.4, which will enable a new filter to allow you to add HTML to the button
   text if need be.
 * I’ll post back here with some sample code when I get that pushed out.
 * Thanks,
    Evan
 *  Thread Starter [EOSlover](https://wordpress.org/support/users/eoslover/)
 * (@eoslover)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/html-inside-shortcode-attribute/#post-6656813)
 * Evan, thanks a million! That’s the best news I had all day.
 *  Plugin Author [Evan Herman](https://wordpress.org/support/users/eherman24/)
 * (@eherman24)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/html-inside-shortcode-attribute/#post-6656823)
 * Hi EOSlover,
 * I’ve gone ahead and made the changes and pushed out the v6.0.2.4 update to the
   repository. In the new update we’ve wrapped the submit button text in a filter
   to allow for filtering of the text, and adding icons as needed.
 * For a usage example of the new filter, have a look at the code snippet I’ve setup
   in the knowledge base. This code snippet uses dashicons (built into WordPress)
   but you should have no problems using the code you need.
 * [https://yikesinc.freshdesk.com/solution/articles/6000078826](https://yikesinc.freshdesk.com/solution/articles/6000078826)
 * Let us know if that works for you, or if you need additional help or a code snippet
   specific to your icon set wed be glad to help out.
 * Thanks again,
    Evan
 *  Thread Starter [EOSlover](https://wordpress.org/support/users/eoslover/)
 * (@eoslover)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/html-inside-shortcode-attribute/#post-6656826)
 * You sir, are a saint.
 *  Plugin Author [Evan Herman](https://wordpress.org/support/users/eherman24/)
 * (@eherman24)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/html-inside-shortcode-attribute/#post-6656829)
 * Great I’m glad that’s working for you now. If you’re enjoying the plugin we would
   love it if you could leave us a nice review here in the forums.
 * [https://wordpress.org/support/view/plugin-reviews/yikes-inc-easy-mailchimp-extender](https://wordpress.org/support/view/plugin-reviews/yikes-inc-easy-mailchimp-extender)
 * Have a great rest of your day!
 * Evan

Viewing 5 replies - 1 through 5 (of 5 total)

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

 * ![](https://s.w.org/plugins/geopattern-icon/yikes-inc-easy-mailchimp-extender_a1c7e5.
   svg)
 * [Easy Forms for Mailchimp](https://wordpress.org/plugins/yikes-inc-easy-mailchimp-extender/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/yikes-inc-easy-mailchimp-extender/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/yikes-inc-easy-mailchimp-extender/)
 * [Active Topics](https://wordpress.org/support/plugin/yikes-inc-easy-mailchimp-extender/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/yikes-inc-easy-mailchimp-extender/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/yikes-inc-easy-mailchimp-extender/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Evan Herman](https://wordpress.org/support/users/eherman24/)
 * Last activity: [10 years, 7 months ago](https://wordpress.org/support/topic/html-inside-shortcode-attribute/#post-6656829)
 * Status: resolved