Skip to content

Commit

Permalink
prefactor: replace Loofah.scrub_fragment with the long form
Browse files Browse the repository at this point in the history
because we're preparing to extract fragment parsing
  • Loading branch information
flavorjones committed May 12, 2023
1 parent cd46ff3 commit 829e74d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rails/html/sanitizer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def initialize
end

def sanitize(html, options = {})
Loofah.scrub_fragment(html, @link_scrubber).to_s
Loofah.fragment(html).scrub!(@link_scrubber).to_s
end
end

Expand Down

0 comments on commit 829e74d

Please sign in to comment.