Ticket #3328: ampamp.diff
File ampamp.diff, 701 bytes (added by , 17 years ago) |
---|
-
wp-includes/formatting.php
109 109 110 110 function wp_specialchars( $text, $quotes = 0 ) { 111 111 // Like htmlspecialchars except don't double-encode HTML entities 112 $text = preg_replace('/&([^#])(?![a-z1-4]{1,8};)/', '&$1', $text); 112 $text = str_replace('&&', '&&', $text); 113 $text = str_replace('&&', '&&', $text); 114 $text = preg_replace('/&(?:$|([^#])(?![a-z1-4]{1,8};))/', '&$1', $text); 113 115 $text = str_replace('<', '<', $text); 114 116 $text = str_replace('>', '>', $text); 115 117 if ( 'double' === $quotes ) {