Only spaces, no tabs.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@29418 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Egon Schmid 2000-07-31 17:19:26 +00:00
parent 5d7cdfbcc5
commit b64843e0e3

View file

@ -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);
</programlisting>