How to keep textarea from converting special chars

A

Anonymous

Guest
so you want the textfield to display the "&foobar" and not "&foobar" ?

I believe it would be in the htmlentities? or htmlspecialchars?
 
this will work for you:
<?php echo htmlentities("&foobar"); ?>
 
Back
Top