Title: Invalid HTML (CDATA Tags)
Last modified: August 20, 2016

---

# Invalid HTML (CDATA Tags)

 *  [NoMad1337](https://wordpress.org/support/users/nomad1337/)
 * (@nomad1337)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/invalid-html-cdata-tags/)
 * Hey,
 * When using your PlugIn, my HTML gets broken because of a WordPress filter to 
   convert all `]]>` to `]]& gt ;` within the_content.
    AFAIK this filter can’t 
   be disabled.
 * However, in nrelate-related.php @ line 353 the ]]> is escaped, breaking the HTML’s
   validity.
 * Could you please deploy the JS within the Head or other filters which don’t break
   the CDATA end-tag?
    Or is there any known method to disable ]]> encoding in the_content
   without modifying WP core files?
 * Thanks, NoMad
 * [http://wordpress.org/extend/plugins/nrelate-related-content/](http://wordpress.org/extend/plugins/nrelate-related-content/)

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

 *  Thread Starter [NoMad1337](https://wordpress.org/support/users/nomad1337/)
 * (@nomad1337)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/invalid-html-cdata-tags/#post-3544222)
 * OK, shorthand: My Theme uses get_the_content and then escapes ]]>, I disabled
   the escaping. But pretty much every WP Blog does filter it, so please consider
   fixing that.
    Also: Style-Tags are used in the body… not valid for XHTML 1.0 
   Transitional:
 * > This could mean that you have incorrectly nested elements — such as a “style”
   > element in the “body” section instead of inside “head”
 *  [katrina@nrelate](https://wordpress.org/support/users/katrinanrelate/)
 * (@katrinanrelate)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/invalid-html-cdata-tags/#post-3544418)
 * [@nomad1337](https://wordpress.org/support/users/nomad1337/) — Can you please
   upgrade to version 0.52 of our plugin(s) and let us know if this issue persists?

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

The topic ‘Invalid HTML (CDATA Tags)’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/nrelate-related-content_1b85b7.svg)
 * [nrelate Related Content](https://wordpress.org/plugins/nrelate-related-content/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/nrelate-related-content/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/nrelate-related-content/)
 * [Active Topics](https://wordpress.org/support/plugin/nrelate-related-content/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/nrelate-related-content/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/nrelate-related-content/reviews/)

## Tags

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

 * 2 replies
 * 2 participants
 * Last reply from: [katrina@nrelate](https://wordpress.org/support/users/katrinanrelate/)
 * Last activity: [13 years, 1 month ago](https://wordpress.org/support/topic/invalid-html-cdata-tags/#post-3544418)
 * Status: not resolved