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