Page 1 of 1

How to display HTML code as a simple string/text?

Posted: Mon Jan 24, 2011 4:12 am
by phazorRise
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?

Re: How to display HTML code as a simple string/text?

Posted: Mon Jan 24, 2011 5:00 am
by sockpuppet
Convert the <> to <> and " to "

Re: How to display HTML code as a simple string/text?

Posted: Mon Jan 24, 2011 6:38 am
by phazorRise
sockpuppet wrote:Convert the <> to <> and " to "
simple solution .... i quit too early....
anyway, thankx

Re: How to display HTML code as a simple string/text?

Posted: Mon Jan 24, 2011 1:15 pm
by AbraCadaver
htmlentities() and/or html_entity_decode()