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

git-svn-id: http://svn.automattic.com/wordpress/trunk@8073 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2008-06-12 21:38:34 +00:00
parent 830428b928
commit 6142025639

View File

@ -1132,6 +1132,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);
}