LJ::ejs — Escapes a string value before it can be put in JavaScript.
LJ::ejs(string);
LJ::ejs
string. string to be escaped
cgi-bin/ljlib.pl
string escaped.