HI,
I want to display HTML code as simple string.
I'm accepting string through form post and when I try to print it, it is printed as HTML entities.
So I want to escape the meaning of code and want to print as it is.
Any suggestion for me?
How to display HTML code as a simple string/text?
Moderator: General Moderators
- phazorRise
- Forum Contributor
- Posts: 134
- Joined: Mon Dec 27, 2010 7:58 am
-
sockpuppet
- Forum Newbie
- Posts: 22
- Joined: Tue Jan 18, 2011 8:38 am
Re: How to display HTML code as a simple string/text?
Convert the <> to <> and " to "
- phazorRise
- Forum Contributor
- Posts: 134
- Joined: Mon Dec 27, 2010 7:58 am
Re: How to display HTML code as a simple string/text?
simple solution .... i quit too early....sockpuppet wrote:Convert the <> to <> and " to "
anyway, thankx
- AbraCadaver
- DevNet Master
- Posts: 2572
- Joined: Mon Feb 24, 2003 10:12 am
- Location: The Republic of Texas
- Contact:
Re: How to display HTML code as a simple string/text?
htmlentities() and/or html_entity_decode()
mysql_function(): WARNING: This extension is deprecated as of PHP 5.5.0, and will be removed in the future. Instead, the MySQLi or PDO_MySQLextension should be used. See also MySQL: choosing an API guide and related FAQ for more information.