parsing html to be xml compliant

htmlentities is not meant for this, use htmlspecialchars instead, ie

htmlspecialchars($var, ENT_NOQUOTES, ‘UTF-8’);

a one liner that can save the day…

Like it.? Share it:

Comments are closed.