diff --git a/functions/pcre.xml b/functions/pcre.xml index 8d0351e3be..1a09c09c52 100644 --- a/functions/pcre.xml +++ b/functions/pcre.xml @@ -393,9 +393,9 @@ This would capitalize all HTML tags in the input text. // common HTML entities to their text equivalent. $search = array ("'<script[^>]*?>.*?</script>'si", // Strip out javascript - "'<[\/\!]*?[^<>]*?>'si", // Strip out html tags - "'([\r\n])[\s]+'", // Strip out white space - "'&(quote|#34);'i", // Replace html entities + "'<[\/\!]*?[^<>]*?>'si", // Strip out html tags + "'([\r\n])[\s]+'", // Strip out white space + "'&(quote|#34);'i", // Replace html entities "'&(amp|#38);'i", "'&(lt|#60);'i", "'&(gt|#62);'i", @@ -404,7 +404,7 @@ $search = array ("'<script[^>]*?>.*?</script>'si", // Strip out "'&(cent|#162);'i", "'&(pound|#163);'i", "'&(copy|#169);'i", - "'&#(\d+);'e"); // evaluate as php + "'&#(\d+);'e"); // evaluate as php $replace = array ("", "", @@ -418,7 +418,7 @@ $replace = array ("", chr(162), chr(163), chr(169), - "chr(\\1)"); + "chr(\\1)"); $text = preg_replace ($search, $replace, $document);