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:
parent
830428b928
commit
6142025639
|
@ -1132,6 +1132,10 @@ function wp_richedit_pre($text) {
|
|||
$output = str_replace('<', '&lt;', $output);
|
||||
$output = str_replace('>', '&gt;', $output);
|
||||
|
||||
// These should be entities too
|
||||
$output = str_replace('<', '<', $output);
|
||||
$output = str_replace('>', '>', $output);
|
||||
|
||||
return apply_filters('richedit_pre', $output);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue