sub escape_for_html { @_ or croak 'no json supplied';
Um, no. escaping for html isn't json specific, even if you're using it for json.
See also HTML::Entities
In reply to Re^5: JSON::XS and escaping literal strings
by Anonymous Monk
in thread JSON::XS and escaping literal strings
by abelard12
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |