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

git-svn-id: http://svn.automattic.com/wordpress/trunk@9809 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
azaozz
2008-11-20 10:54:59 +00:00
parent 30c3602b92
commit 5785542e00
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";