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.
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.
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.