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

Hey there mate. I'm the one who was linking to the Underscore.js annotated escape function:

http://documentcloud.github.com/underscore/docs/underscore.h...

If you use something like this when displaying messages, it should not allow any XSS.



That is a very tall claim :) Thanks though, I'll read the code!


Also you need to watch out for Unicode control characters messing everything up! Certain characters (up to you to figure out which) should actually be stripped as they have no useful function for Western languages...




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

Search: