HTML entities fixes

This commit is contained in:
Michal Čihař
2003-03-25 10:21:18 +00:00
parent 773d0dce22
commit cbc5cdd706
2 changed files with 3 additions and 3 deletions

View File

@@ -1167,7 +1167,7 @@ h1 {font-family: sans-serif; font-size: large; font-weight: bold}
function PMA_jsFormat($a_string = '', $add_backquotes = TRUE)
{
if (is_string($a_string)) {
$a_string = str_replace('"', '"', $a_string);
$a_string = htmlentities($a_string);
$a_string = str_replace('\\', '\\\\', $a_string);
$a_string = str_replace('\'', '\\\'', $a_string);
$a_string = str_replace('#', '\\#', $a_string);