I put this in Single quotes in an echo, and the <, etc. gets turned into their appropriate characters. They do not display literally, as < and etc.
How do I do it? Thanks.
I put this in Single quotes in an echo, and the <, etc. gets turned into their appropriate characters. They do not display literally, as < and etc.
How do I do it? Thanks.
you need to use htmlspecialchars function
<?php
echo "<>"; //will display <>
echo htmlspecialchars ("<>", ENT_QUOTES,'UTF-8'); //will display <>
?>