[Plugin: Twitter for WordPress] Escaping HTML entities
-
Not sure if anyone else has had this issue, but I had a post where I used an ampersand – but obviously didn’t use & because it’s twitter and it would look idiotic – so when I would check validation, it wouldn’t validate. To fix it I did put this on line 71 (which is directly after this line):
$msg = " ".substr(strstr($message['description'],': '), 2, strlen($message['description']))." ";
$msg = htmlentities($msg);
If you are using UTF8 encoding, you can try doing this instead:
$msg = html_entity_decode($msg); $msg = htmlentities($msg);
Hope that helps someone.
- The topic ‘[Plugin: Twitter for WordPress] Escaping HTML entities’ is closed to new replies.