X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/580b7bfc0c6c70d87a59661c583fdf55c3d13dda..0a3b052cf617955571fa88b1bba4290cd27d38d6:/config/initializers/sanitize.rb diff --git a/config/initializers/sanitize.rb b/config/initializers/sanitize.rb index b98523805..d6bd6c3ee 100644 --- a/config/initializers/sanitize.rb +++ b/config/initializers/sanitize.rb @@ -5,6 +5,7 @@ Sanitize::Config::OSM = Sanitize::Config.merge( :remove_contents => %w[script style], :transformers => lambda do |env| env[:node].remove_class + env[:node].kwattr_remove("style", nil) env[:node].add_class("table table-sm w-auto") if env[:node_name] == "table" end )