| 1 | package HTML::Template::ESCAPE::JS; | ||||||||||
| 2 | 5 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | 5 | ▶ | use warnings FATAL => 'all'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 5 | ▶ | use base qw(HTML::Template::ESCAPE); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | 5 | our $VERSION = '2.9'; | |||||||||
| 6 | |||||||||||
| 7 | 23 | ▶ | sub output { | ||||||||
|
Subroutine
output: called CC=2 SCAR=7.0
Pod
undocumented
| |||||||||||
| 8 | 23 | my $self = shift; | |||||||||
| 9 | 23 | ▶ | $_ = shift if (@_ > 0); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 10 | 23 | s/\\/\\\\/g; | |||||||||
| 11 | 23 | s/'/\\'/g; | |||||||||
| 12 | 23 | s/"/\\"/g; | |||||||||
| 13 | 23 | s/\n/\\n/g; | |||||||||
| 14 | 23 | s/\r/\\r/g; | |||||||||
| 15 | 23 | $_; | |||||||||
| 16 | } | ||||||||||
| 17 | |||||||||||
| 18 | 5 | 1; | |||||||||