2 ms·
Yes. jQuery's text() method will properly escape HTML fragments. It's just a bit more verbose and a bit slower than using .escape("attribute") within a templat
by jashkenas 16y ago
Yes. jQuery's text() method will properly escape HTML fragments.
It's just a bit more verbose and a bit slower than using .escape("attribute") within a template.