This commit is contained in:
mohrt
2003-05-07 13:24:43 +00:00
parent 2af5e72a7c
commit 900f27bd6d

View File

@@ -51,7 +51,7 @@ function smarty_modifier_escape($string, $esc_type = 'html')
case 'javascript':
// escape quotes and backslashes and newlines
return str_replace(array('\\','\'',"\r","\n"), array("\\\\", "\\'",'\r','\r'), $string);
return str_replace(array('\\','\'',"\r","\n"), array("\\\\", "\\'",'\r','\n'), $string);
default:
return $string;