Showing a literal string with PHP -
i set in single quotes in echo, , <, etc. gets turned appropriate characters. not display literally, < , etc.
how do it? thanks.
you need utilize htmlspecialchars function
<?php echo "<>"; //will display <> echo htmlspecialchars ("<>", ent_quotes,'utf-8'); //will display <> ?> php
No comments:
Post a Comment