I’ve got some code which adds content to the post and I want to include some HTML comments in there.
But I have a problem.
The opening tag
<!--goes through fine but the closing tag
-->gets turned into
–>(thats & # 8211 > ) which of course breaks everything.
I assume its actually some sort of bug in WordPress because
<--doesn’t get converted so its not the presence of
--that makes it go wrong.
- The topic ‘WordPress encoding html comment tags’ is closed to new replies.