note 9335 deleted from function.print by jimw
| From: | jimw@php.net | Date: | Fri, 14 Dec 2001 20:21:36 +0000 |
| Subject: | note 9335 deleted from function.print by jimw | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-22737@lists.php.net to get a copy of this message | ||
[Editor's note: a better solution is to use htmlspecialchars() or htmlentities().]
You can print out textareas and other inputs that may contain terminators by replacing the < and
> with lt and gt.
ie.
$string=str_replace("&","&",$string);
$string=str_replace("<","<",$string);
$string=str_replace(">",">",$string);