rails/rails_xss — pull request #18 by mungler (2012-11-08 23:18:11+00:00)
Title: Patch to allow simple_format to behave as in Rails 3

This patch allows simple_format to accept an options hash with the 'sanitize' parameter, consistent with Rails 3.

By default, the sanitize parameter will be true, and escaping will occur. However, if you pass :sanitize => false, the string will not be sanitized during formatting.

Test case included.