mirror of
git://develop.git.wordpress.org/
synced 2025-01-17 12:58:25 +01:00
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:
parent
212cade30c
commit
49f258fcfe
@ -1129,6 +1129,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…
x
Reference in New Issue
Block a user