note 71931 added to function.htmlspecialchars
| From: | alex-0 at hotmail dot co dot uk | Date: | Sat, 23 Dec 2006 09:09:24 +0000 |
| Subject: | note 71931 added to function.htmlspecialchars | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-120875@lists.php.net to get a copy of this message | ||
You can also use variables.
This is handy when working with forms to clear out an malicious html
<?php
$new = htmlspecialchars($_POST[message], ENT_QUOTES);
echo $new;
?>
----
Server IP: 83.138.144.80
Probable Submitter: 62.253.32.4 (proxied: 86.29.54.68)
----
Manual Page -- http://www.php.net/manual/en/function.htmlspecialchars.php
Edit -- https://master.php.net/note/edit/71931
Del: integrated -- https://master.php.net/note/delete/71931/integrated
Del: useless -- https://master.php.net/note/delete/71931/useless
Del: bad code -- https://master.php.net/note/delete/71931/bad+code
Del: spam -- https://master.php.net/note/delete/71931/spam
Del: non-english -- https://master.php.net/note/delete/71931/non-english
Del: in docs -- https://master.php.net/note/delete/71931/in+docs
Del: other reasons-- https://master.php.net/note/delete/71931
Reject -- https://master.php.net/note/reject/71931
Search -- https://master.php.net/manage/user-notes.php