Changeset 1940 for trunk/wp-includes/functions-formatting.php
- Timestamp:
- 12/12/2004 08:41:19 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/functions-formatting.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/functions-formatting.php
r1927 r1940 96 96 } 97 97 return true; 98 } 99 100 function wp_specialchars( $text, $quotes = 0 ) { 101 // Like htmlspecialchars except don't double-encode HTML entities 102 $text = preg_replace('/&([^#])(?![a-z12]{1,8};)/', '&$1', $text);- 103 $text = str_replace('<', '<', $text); 104 $text = str_replace('>', '>', $text); 105 if ( $quotes ) { 106 $text = str_replace('"', '"', $text); 107 $text = str_replace('"', ''', $text); 108 } 109 return $text; 98 110 } 99 111
Note: See TracChangeset
for help on using the changeset viewer.