- Use & instead of numerical entity in autop.
parent
cec393d9df
commit
0b008c55ff
|
@ -985,7 +985,7 @@ function _filter_autop($text) {
|
|||
$chunk = preg_replace('|(?<!<br />)\s*\n|', "<br />\n", $chunk); // make line breaks
|
||||
$chunk = preg_replace('!(</?(?:table|tr|td|th|div|dl|dd|dt|ul|ol|li|pre|select|form|blockquote|p|h[1-6])[^>]*>)\s*<br />!', "$1", $chunk);
|
||||
$chunk = preg_replace('!<br />(\s*</?(?:p|li|div|th|pre|td|ul|ol)>)!', '$1', $chunk);
|
||||
$chunk = preg_replace('/&([^#])(?![a-z]{1,8};)/', '&$1', $chunk);
|
||||
$chunk = preg_replace('/&([^#])(?![a-z]{1,8};)/', '&$1', $chunk);
|
||||
}
|
||||
$output .= $chunk;
|
||||
}
|
||||
|
|
|
@ -985,7 +985,7 @@ function _filter_autop($text) {
|
|||
$chunk = preg_replace('|(?<!<br />)\s*\n|', "<br />\n", $chunk); // make line breaks
|
||||
$chunk = preg_replace('!(</?(?:table|tr|td|th|div|dl|dd|dt|ul|ol|li|pre|select|form|blockquote|p|h[1-6])[^>]*>)\s*<br />!', "$1", $chunk);
|
||||
$chunk = preg_replace('!<br />(\s*</?(?:p|li|div|th|pre|td|ul|ol)>)!', '$1', $chunk);
|
||||
$chunk = preg_replace('/&([^#])(?![a-z]{1,8};)/', '&$1', $chunk);
|
||||
$chunk = preg_replace('/&([^#])(?![a-z]{1,8};)/', '&$1', $chunk);
|
||||
}
|
||||
$output .= $chunk;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue