mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Encode < and > in wp_richedit_pre. Props azaozz. fixes #6449
git-svn-id: https://develop.svn.wordpress.org/trunk@8073 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user