note 89410 added to function.strip-tags
| From: | kai at froghh dot de | Date: | Fri, 06 Mar 2009 16:45:05 +0000 |
| Subject: | note 89410 added to function.strip-tags | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-151560@lists.php.net to get a copy of this message | ||
a function that decides if < is a start of a tag or a lower than / lower than + equal:
function lt_replace($str){
return preg_replace("/<([^[:alpha:]])/", '<\\1', $str);
}
It's to be used before strip_slashes.
----
Server IP: 69.147.83.197
Probable Submitter: 213.209.121.3
----
Manual Page -- http://www.php.net/manual/en/function.strip-tags.php
Edit -- https://master.php.net/note/edit/89410
Del: integrated -- https://master.php.net/note/delete/89410/integrated
Del: useless -- https://master.php.net/note/delete/89410/useless
Del: bad code -- https://master.php.net/note/delete/89410/bad+code
Del: spam -- https://master.php.net/note/delete/89410/spam
Del: non-english -- https://master.php.net/note/delete/89410/non-english
Del: in docs -- https://master.php.net/note/delete/89410/in+docs
Del: other reasons-- https://master.php.net/note/delete/89410
Reject -- https://master.php.net/note/reject/89410
Search -- https://master.php.net/manage/user-notes.php