NAME
Valiant::JSON::Util - Importable utility methods
SYNOPSIS
use Valiant::JSON::Util 'escape_javascript';
DESCRIPTION
Just a place to stick various utility functions that are cross cutting concerns.
SUBROUTINES
This package has the following subroutines for EXPORT
escape_javascript
escape_javascript($string);
Escapes a string so it can be used inside a javascript string: escapes ' and " and \ and newlines and a few other characters so that you can use a string as a javascript value. Helps with injection attacks (but isn't everything you need).
SEE ALSO
AUTHOR
See Valiant
COPYRIGHT & LICENSE
See Valiant