Below are revisions for this snippet.

HTML-escape javascript strings





Syndication

Revision Revison 1
Similar to Perl's CGI::escapeHTML(), though (because we can!) this adds it as a method to all String objects.