note 68787 added to function.strip-tags
| From: | metricat152dotorg at osu1 dot php dot net | Date: | Thu, 10 Aug 2006 18:46:33 +0000 |
| Subject: | note 68787 added to function.strip-tags | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-115770@lists.php.net to get a copy of this message | ||
I tried using the strip_selected_tags function that salavert created. It works really well for one
line text, but if you have hard returns in the text it can't find the other tag.
I altered the line where it shifts the text into a variable to replace on OS line returns.
$text = preg_replace("/\r\n|\n|\r/","",array_shift($args));
----
Server IP: 216.194.113.175
Probable Submitter: 24.180.14.58
----
X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER
autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/function.strip-tags.php
Edit -- https://master.php.net/note/edit/68787
Del: integrated -- https://master.php.net/note/delete/68787/integrated
Del: useless -- https://master.php.net/note/delete/68787/useless
Del: bad code -- https://master.php.net/note/delete/68787/bad+code
Del: spam -- https://master.php.net/note/delete/68787/spam
Del: non-english -- https://master.php.net/note/delete/68787/non-english
Del: in docs -- https://master.php.net/note/delete/68787/in+docs
Del: other reasons-- https://master.php.net/note/delete/68787
Reject -- https://master.php.net/note/reject/68787
Search -- https://master.php.net/manage/user-notes.php