Group
Extension

Matches 1

Dotiac ( M/MA/MALUKU/dotiac/Dotiac-0.8_1.tar.gz, MALUKU, 2009; MetaCPAN )
Dotiac/lib/Dotiac/DTL/Filter.pm ( view source; MetaCPAN )
pe {
	my $value=shift;
	$value->escape(1);
	return $value;
}

#Not for JSON output of objects, I need to write an JSON-Addon for that.

my %jsescape = (
	"\n" => "\\n",
	"\r" => "\\r",
	"\t
hem.

=head2 escapejs 

Escapes a Javascript (JSON) String. This will not generate JSON Code out of datastructures, use L<Dotiac::DTL::Addon::JSON> for that.

	<script>var="{{ "\""|escapejs|safe

Powered by Groonga
Maintained by Kenichi Ishigaki <ishigaki@cpan.org>. If you find anything, submit it on GitHub.