cvs: smarty /plugins modifier.strip_tags.php
| From: | Monte Ohrt | Date: | Fri, 12 Apr 2002 14:48:48 +0000 |
| Subject: | cvs: smarty /plugins modifier.strip_tags.php | ||
| Groups: | php.smarty.cvs | ||
| Request: | Send a blank email to php-smarty-cvs+get-47@lists.php.net to get a copy of this message | ||
mohrt Fri Apr 12 10:48:48 2002 EDT
Modified files:
/smarty/plugins modifier.strip_tags.php
Log:
back out changes to strip_tags
Index: smarty/plugins/modifier.strip_tags.php
diff -u smarty/plugins/modifier.strip_tags.php:1.2 smarty/plugins/modifier.strip_tags.php:1.3
--- smarty/plugins/modifier.strip_tags.php:1.2 Fri Apr 12 10:41:04 2002
+++ smarty/plugins/modifier.strip_tags.php Fri Apr 12 10:48:48 2002
@@ -8,12 +8,12 @@
* Purpose: strip html tags from text
* -------------------------------------------------------------
*/
-function smarty_modifier_strip_tags($string, $replace_with_space = true, $allowed =
"<i><b><br>")
+function smarty_modifier_strip_tags($string, $replace_with_space = true)
{
if ($replace_with_space)
return preg_replace('!<[^>]*?>!', ' ', $string);
else
- return strip_tags($string, $allowed);
+ return strip_tags($string);
}
/* vim: set expandtab: */