Don't muddy <pre> pool
git-svn-id: http://svn.automattic.com/wordpress/trunk@2056 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
224dc527f8
commit
acd814c90f
|
@ -52,6 +52,8 @@ function wptexturize($text) {
|
||||||
|
|
||||||
function clean_pre($text) {
|
function clean_pre($text) {
|
||||||
$text = str_replace('<br />', '', $text);
|
$text = str_replace('<br />', '', $text);
|
||||||
|
$text = str_replace('<p>', "\n", $text);
|
||||||
|
$text = str_replace('</p>', '', $text);
|
||||||
return $text;
|
return $text;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue