Filter HTML entities when inserting strings with js, includes patch by nbachiyski, fixes #8254

git-svn-id: https://develop.svn.wordpress.org/trunk@9809 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz
2008-11-20 10:54:59 +00:00
parent abecad5356
commit 2f23018db2
3 changed files with 26 additions and 34 deletions

View File

@@ -51,6 +51,7 @@ class WP_Scripts extends WP_Dependencies {
$eol = ",\n";
}
echo "\n\t}\n";
echo "try{convertEntities($object_name);}catch(e){};\n";
echo "/* ]]> */\n";
echo "</script>\n";