Due to a bug in strip_tags (introduced with Rails 4.2), ampersands and quotes are escaped twice. The "to_s.gsub" can be removed once the affected Rails versions are not widely used anymore, see:
https://github.com/rails/rails-html-sanitizer/issues/28
One test failed due to this Rails bug, with this PR, all tests are green again.
Due to a bug in strip_tags (introduced with Rails 4.2), ampersands and quotes are escaped twice. The "to_s.gsub" can be removed once the affected Rails versions are not widely used anymore, see: https://github.com/rails/rails-html-sanitizer/issues/28
One test failed due to this Rails bug, with this PR, all tests are green again.