I have some strings I wish to display on a web page, but they contain special character which are interpreted as html. I am working in php. Is there some library function I can call or some preg_replace I can do with some regular expression that will let me convert the string to a form that will display correctly.
Did you try htmlspecialchars() or htmlentities() to encode special characters?
Thanks! I found htmlspecialchars(). I will look the other one up also.
Larry