Stop WordPress From Removing HTML Comments In Content


Whenever I switch from the visual editor to the text (HTML) editor and put an HTML comment in the code, e.g. <!-- this is a comment-->, WordPress removes it, either after saving the change or switching back and forth between editing modes.

Is this a quirk of WordPress or TinyMCE and more importantly, how do I stop this so I can keep the comments in the content?

j08691 1 month 0 Answers 6 views 0

Leave an answer