Fix quotes in captions. Props azaozz. see #6812

git-svn-id: https://develop.svn.wordpress.org/trunk@8290 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2008-07-08 23:38:53 +00:00
parent f0f5316a1d
commit 304340a9b0
8 changed files with 19 additions and 20 deletions
+2 -10
View File
@@ -1124,18 +1124,10 @@ function wp_richedit_pre($text) {
// Filtering a blank results in an annoying <br />\n
if ( empty($text) ) return apply_filters('richedit_pre', '');
$output = $text;
$output = convert_chars($output);
$output = convert_chars($text);
$output = wpautop($output);
$output = htmlspecialchars($output, ENT_NOQUOTES);
// These must be double-escaped or planets will collide.
$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);
}