Encode < and > in wp_richedit_pre. Props azaozz. fixes #6449 for 2.5

git-svn-id: https://develop.svn.wordpress.org/branches/2.5@8074 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2008-06-12 21:38:58 +00:00
parent 212cade30c
commit 49f258fcfe

View File

@ -1129,6 +1129,10 @@ function wp_richedit_pre($text) {
$output = str_replace('&lt;', '&amp;lt;', $output);
$output = str_replace('&gt;', '&amp;gt;', $output);
// These should be entities too
$output = str_replace('<', '&lt;', $output);
$output = str_replace('>', '&gt;', $output);
return apply_filters('richedit_pre', $output);
}