Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: