I would like to echo HTML code and not execute it, how can i do that.
Example : echo('<br>') would not print a line but "<br>" on the screen.
Use:
http://us2.php.net/manual/en/function.htmlentities.php
ever heard of the codes like > and <? try this:
echo('<br>');
lt = less than gt = greater than
Intimidat0r wrote:ever heard of the codes like > and <? try this: echo('<br>'); lt = less than gt = greater than
FYI - That's what htmlentities() does for you automatically.
🙂
Thank you guys, i thought that htmlentities was doing something else 😛
It work now 🙂
Good. Don't forget to mark the topic as resolved.
Happy coding.