Skip to content

Commit 829e74d

Browse files
committed
prefactor: replace Loofah.scrub_fragment with the long form
because we're preparing to extract fragment parsing
1 parent cd46ff3 commit 829e74d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rails/html/sanitizer.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def initialize
7070
end
7171

7272
def sanitize(html, options = {})
73-
Loofah.scrub_fragment(html, @link_scrubber).to_s
73+
Loofah.fragment(html).scrub!(@link_scrubber).to_s
7474
end
7575
end
7676

0 commit comments

Comments
 (0)