htmlentities() does NOT work with html entities
Posted on 2007-03-26
I need to clean user-inputed text so I use htmlentities() however it does NOT work if html entities have already been provided.
Here is an example:
echo htmlentities("Copyright © 2007 CompanyName®");
How should I solve this?