Changeset 3056 for trunk/wp-includes/functions-formatting.php
- Timestamp:
- 11/13/2005 02:48:35 AM (20 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/functions-formatting.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/functions-formatting.php
r3049 r3056 42 42 $next = true; 43 43 } 44 $curl = preg_replace('/&([^#])(?![a-z1 2]{1,8};)/', '&$1', $curl);44 $curl = preg_replace('/&([^#])(?![a-z1-4]{1,8};)/', '&$1', $curl); 45 45 $output .= $curl; 46 46 } … … 99 99 function wp_specialchars( $text, $quotes = 0 ) { 100 100 // Like htmlspecialchars except don't double-encode HTML entities 101 $text = preg_replace('/&([^#])(?![a-z1 2]{1,8};)/', '&$1', $text);-101 $text = preg_replace('/&([^#])(?![a-z1-4]{1,8};)/', '&$1', $text);- 102 102 $text = str_replace('<', '<', $text); 103 103 $text = str_replace('>', '>', $text); … … 350 350 351 351 // Converts lone & characters into & (a.k.a. &) 352 $content = preg_replace('/&([^#])(?![a-z ]{1,8};)/i', '&$1', $content);352 $content = preg_replace('/&([^#])(?![a-z1-4]{1,8};)/i', '&$1', $content); 353 353 354 354 // Fix Word pasting
Note: See TracChangeset
for help on using the changeset viewer.