HTML entities in comments
-
I made a plugin for my blog that replicates the
backticks
function available here on the forum. It’s a simple little plugin. As you can guess it useshtmlspecialchars()
(among other things) on the stuff in the backticks. But I found something weird.If a comment contains
'
in it, it doesn’t post. (Incidentally, I’m having trouble pasting it here, but you can probably tell what I mean–remove the “amp;” from the entity.) You hit submit, and WP just reloads the current post without posting the comment. (It’s not in the moderation/spam queues, it’s just gone.)Any ideas?
EDIT: It took me a few tries to get the entity to paste. It’s there now.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘HTML entities in comments’ is closed to new replies.