note 41562 added to function.strip-tags
| From: | sbeaulieu at hoskinARF dot caW/OARF | Date: | Wed, 14 Apr 2004 20:19:04 +0000 |
| Subject: | note 41562 added to function.strip-tags | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-68133@lists.php.net to get a copy of this message | ||
If you only want to protect from people inserting html tags or php code in your DB, why not only
use:
<?php function replaceHtmlMachin($str) {
$return = str_replace("<", "lessthan", $str);
return $return;
} ?>
so its really fast and nothing will work.
----
Manual Page -- http://www.php.net/manual/en/function.strip-tags.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+41562
Delete -- http://master.php.net/manage/user-notes.php?action=delete+41562&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+41562&report=yes
Search -- http://master.php.net/manage/user-notes.php