From b64843e0e3c64796d63f739761a568aceba5ac5b Mon Sep 17 00:00:00 2001 From: Egon Schmid Date: Mon, 31 Jul 2000 17:19:26 +0000 Subject: [PATCH] Only spaces, no tabs. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@29418 c90b9560-bf6c-de11-be94-00142212c4b1 --- functions/pcre.xml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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);