Broken Social Engine Comments
Posted by Jeremy on 6 October 2009
Recently, as we were wrapping up work on a Social Engine
project (stay tuned for more info on that!), we noticed that
people who put colorful text art (see below), were
unintentionally (or maybe not) breaking the blog comments
display. Really, what it came down to was the over
exuberant use of special characters in the word art,
specifically single quotes and double quotes. Looking into
this a bit further, we noticed if we escaped the incoming
text using PHP's htmlspecialchars() function, we'd no longer
have this problem. So, for all of you looking for the answer
to this question, here you go!
