Actually supporting a bunch of elements

This commit is contained in:
Darius Kazemi 2021-04-23 15:44:55 -07:00
parent b2270fd37d
commit 0e3f729c33

View File

@ -53,7 +53,7 @@ class Sanitize
end end
UNSUPPORTED_ELEMENTS_TRANSFORMER = lambda do |env| UNSUPPORTED_ELEMENTS_TRANSFORMER = lambda do |env|
return unless %w(h1 h2 h3 h4 h5 h6 blockquote pre ul ol li).include?(env[:node_name]) return unless %w(h6).include?(env[:node_name])
current_node = env[:node] current_node = env[:node]