Skip to content

Commit

Permalink
Dev: gtp filter json replace single quotes with htmlcode also
Browse files Browse the repository at this point in the history
  • Loading branch information
lacrioque committed Jul 4, 2018
1 parent 0099036 commit 4dcc3bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/helpers/common_helper.php
Expand Up @@ -2163,7 +2163,7 @@ function jsonEscape($str, $strip_tags = false, $htmldecode = false)
if ($strip_tags == true) {
$str = strip_tags($str);
}
return str_replace('"', "'", $str);
return str_replace(array('"','\''), array("'","'"), $str);
}

/**
Expand Down

0 comments on commit 4dcc3bd

Please sign in to comment.