Skip to content

Commit

Permalink
Merge pull request #1355 from noesya/rollback-html4-sanitizer
Browse files Browse the repository at this point in the history
Rollback to HTML4 sanitizer
  • Loading branch information
pabois committed Oct 24, 2023
2 parents 2a7e5a1 + 224b5db commit 8aac7c3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ class Application < Rails::Application
# Need for +repage, because of https://github.com/rails/rails/commit/b2ab8dd3a4a184f3115e72b55c237c7b66405bd9
config.active_storage.supported_image_processing_methods = ["+"]

# TEMP TODO: Corriger le problème des nbsp avec le sanitizer HTML5
config.action_view.sanitizer_vendor = Rails::HTML4::Sanitizer
config.action_view.sanitized_allowed_tags = [
"a", "b", "br", "em", "i", "img", "li", "ol", "p", "strong", "sub", "sup", "ul"
]
Expand Down

0 comments on commit 8aac7c3

Please sign in to comment.