In Rails 4.2 HTML sanitization has been rewritten using a more secure library. This gem includes the old behavior shipping with Rails 4.2 and before. It is strictly provided to ease migration. It will be supported until Rails 5. WWW: https://github.com/rails/rails-deprecated_sanitizer