.. ]]>
this requires only to escape ' with \' and end of script block
We also remove NUL byte as some browsers (namely MSIE) ignore it and
inserting it anywhere inside
public static escapeJsString ( string $string ) : string | ||
$string | string | the string to be escaped |
return | string | the escaped string |