Revision 9796c91f
Von Moritz Bunkus vor fast 14 Jahren hinzugefügt
SL/Template/Plugin/L.pm | ||
---|---|---|
21 | 21 |
return $::locale->quote_special_chars('HTML', $string); |
22 | 22 |
} |
23 | 23 |
|
24 |
sub _J { |
|
25 |
my $string = "" . shift; |
|
26 |
$string =~ s/\"/\\\"/g; |
|
27 |
return $string; |
|
28 |
} |
|
29 |
|
|
24 | 30 |
sub _hashify { |
25 | 31 |
return (@_ && (ref($_[0]) eq 'HASH')) ? %{ $_[0] } : @_; |
26 | 32 |
} |
Auch abrufbar als: Unified diff
JavaScript-String-Escaping