Title: [Plugin: More Fields] Bug: HTML in Captions
Last modified: August 19, 2016

---

# [Plugin: More Fields] Bug: HTML in Captions

 *  [thecorkboard](https://wordpress.org/support/users/thecorkboard/)
 * (@thecorkboard)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/plugin-more-fields-bug-html-in-captions/)
 * Even though HTML is said to be allowed, it’s taking this HTML description:
 * `Copy and paste the abstract from a source like <a href="http://BN.com" target
   ="_blank">Barnes and Noble</a> or <a href="http://amazon.com" target="_blank"
   >Amazon.com</a>`
 * And turning it into this:
 * `Copy and paste the abstract from a source like <a href=&quot;http://BN.com&quot;
   target=&quot;_blank&quot;>Barnes and Noble</a> or <a href=&quot;http://amazon.
   com&quot; target=&quot;_blank&quot;>Amazon.com</a>`

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

 *  [Andrew Martin](https://wordpress.org/support/users/andrewsvg/)
 * (@andrewsvg)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/plugin-more-fields-bug-html-in-captions/#post-1656992)
 * I am having this same issue. Would love to know if we can use HTML and remove
   the stripping in this caption field. Small thing, but it would make things easier.
 *  [sam_a](https://wordpress.org/support/users/sam_a/)
 * (@sam_a)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/plugin-more-fields-bug-html-in-captions/#post-1656996)
 * I noticed this too.
 *  [Andrew Martin](https://wordpress.org/support/users/andrewsvg/)
 * (@andrewsvg)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/plugin-more-fields-bug-html-in-captions/#post-1657042)
 * Hey guys, not sure if you resolved this yet, but I did this and so far, everything
   seems to be working great. It was kind of a weird hack fix, so it would be cool
   to see one of the developers reply if they read this and tell me if I did something
   that will screw everything up 🙂
 * On line 371 of more-fields-settings-object.php, change the line from this:
 *  `$html = str_replace('%caption%', '<p class="mf_caption">' . stripslashes($field['
   caption']) . '</p>', $html);`
 * To this:
    `$html = str_replace('%caption%', '<p class="mf_caption">' . html_entity_decode(
   stripslashes($field['caption'])) . '</p>', $html);`
 * I’m hoping using that html_entity_decode function doesn’t destroy anything…again,
   on my setup it’s working fine so I’m hoping for the best.
 *  [sdhunt](https://wordpress.org/support/users/sdhunt/)
 * (@sdhunt)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/plugin-more-fields-bug-html-in-captions/#post-1657088)
 * thanks Andrew, that worked for me.
    I do hope the developers fix this bug in 
   the next version!
 *  [Andrew Martin](https://wordpress.org/support/users/andrewsvg/)
 * (@andrewsvg)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/plugin-more-fields-bug-html-in-captions/#post-1657089)
 * For sure sd,
 * I would strongly recommend checking out this MUCH better plugin. They actually
   update it and it’s insanely flexible. The way they do the image uploads is much
   more efficient as well.
 * [http://wordpress.org/extend/plugins/advanced-custom-fields/](http://wordpress.org/extend/plugins/advanced-custom-fields/)
 * Don’t get me wrong, I used More Fields for a LONG time, but I grew tired of them
   not supporting the plugin and found this much better one.
 * Hope that helps. 🙂

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

The topic ‘[Plugin: More Fields] Bug: HTML in Captions’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/more-fields.svg)
 * [More Fields](https://wordpress.org/plugins/more-fields/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/more-fields/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/more-fields/)
 * [Active Topics](https://wordpress.org/support/plugin/more-fields/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/more-fields/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/more-fields/reviews/)

 * 5 replies
 * 4 participants
 * Last reply from: [Andrew Martin](https://wordpress.org/support/users/andrewsvg/)
 * Last activity: [14 years, 10 months ago](https://wordpress.org/support/topic/plugin-more-fields-bug-html-in-captions/#post-1657089)
 * Status: not resolved