Hi all,
I have a common problem of trying to store HTML code in a MySQL database. Whenever I try to enter something that contains a special HTML character, like "<p>", it translates it into expressions like "<p>", which I don't want. What is the best way to avoid that?
Thanks.
MySQL translating html tags
Moderator: General Moderators
Re: MySQL translating html tags
Look for usage of the functions htmlspecialchars() or htmlentities() in your code.
Re: MySQL translating html tags
I didn't use any of those. I only used mysql_real_escape_string to add backslashes, but they didn't affect angle brackets.