LiveWire Peer Support Network

Printable Version of Topic "Prevent HTML with PHP"

- LiveWire Teen Forums & College Forums (http://www.golivewire.com)
-- (http://www.golivewire.com/forums/support-technical.html)
--- Programming & Application Development (http://www.golivewire.com/forums/forum-211-s-0.html)
---- Prevent HTML with PHP (http://www.golivewire.com/forums/peer-ottysn-support-a.html)


-- Posted by masterfultemptation at 9:52 am on Sep. 21, 2006

Okay, so I'm outputting information from a variable.

Code:
$variable = "";

Now I want to print the contents of this variable.

Code:
print("$variable");

But, seeing as how the contents of the variable is HTML code, how do I output it as-is...so it out puts exactly

Code:

Instead of creating the iframe.

Note, the iframe was just an example...I need this for other commands as well.

Thanks


www.golivewire.com