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...
http://documentcloud.github.com/underscore/docs/underscore.h...
If you use something like this when displaying messages, it should not allow any XSS.