News for hackers. Stuff that matters.
Re:My weekend hack postmortem: Iterating by cmwelsh on Saturday May 26, 2012 @06:34PM (#4028586)
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.

Re:My weekend hack postmortem: Iterating by ecto on Saturday May 26, 2012 @06:41PM (#4028608)
That is a very tall claim :) Thanks though, I'll read the code!
Re:My weekend hack postmortem: Iterating by cmwelsh on Saturday May 26, 2012 @06:52PM (#4028632)
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...