back out changes to strip_tags

This commit is contained in:
mohrt
2002-04-12 14:48:48 +00:00
parent 982698643f
commit e693afbeca
2 changed files with 4 additions and 4 deletions

View File

@@ -8,12 +8,12 @@
* Purpose: strip html tags from text * 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) if ($replace_with_space)
return preg_replace('!<[^>]*?>!', ' ', $string); return preg_replace('!<[^>]*?>!', ' ', $string);
else else
return strip_tags($string, $allowed); return strip_tags($string);
} }
/* vim: set expandtab: */ /* vim: set expandtab: */

View File

@@ -8,12 +8,12 @@
* Purpose: strip html tags from text * 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) if ($replace_with_space)
return preg_replace('!<[^>]*?>!', ' ', $string); return preg_replace('!<[^>]*?>!', ' ', $string);
else else
return strip_tags($string, $allowed); return strip_tags($string);
} }
/* vim: set expandtab: */ /* vim: set expandtab: */