mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 10:24:26 +02:00
fix typo
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user