string.esc
string.esc(content)
Parameters
- content
{String}
:a string
Returns
{String}
:
the string safely HTML-escaped
var string = require("can-util/js/string/string");
string.esc("<div> </div>"); //-> "<div>&nbsp;</div>"