Protect your Rails app from malicious XSS attacks

posted by
pete

I noticed a post on RubyInside about two new libraries to clean up user submitted form data. Any time someone submits a string which is then displayed in the browser as rendered html, there exists the opportunity for a malicious hacker to insert bad things into your browser. I'm talking about this kind of nonsense:



or this: