function jsSafe($str) { global $modx; return htmlentities($str, ENT_QUOTES, $modx->config[’modx_charset’], false); }
function jsSafe($str) { global $modx; return htmlentities($str, ENT_QUOTES, $modx->config[’modx_charset’]); }