spyderix is absolutely right that one should use the HTML entities that correspond to the symbols that are reserved HTML characters.
It is easy to get a list of HTML entities.
I'd still say it's easier to use htmlspecialchars() and let the PHP guys maintain the list of reserved HTML characters for you, and worry about all the optimizations and whatnot.
(And sorry about my first post, it told me in preview that & l t ; was properly encoded to show up but then turned it into a less than anyway.)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.