Image

Imagematchboy wrote in Imagephp_dev

php function question?

Is there a function that will print out html code instead of actually loading the html code and letting the browser display it?

For instance. I have a form that allows someone to save text into a text box. If someone posts text with html code, when another page displays the text it loads the html tags and ends up loading in the browser as html code... which can cause some problems.

is there something that will extract html code or code in general in a print statement?

if I am going to <? print "Description: $description " ; ?>

is there a function I can add to $description when its going to print out the value of $description minus the code?