Project

General

Profile

Defect #44348 » 0001-Fix-formatting-a-text-being-much-slower-in-7.0.0-whe.patch

Go MAEDA, 2026-08-17 16:05

View differences:

lib/redmine/wiki_formatting/common_mark/formatter.rb
fragment = Redmine::WikiFormatting::HtmlParser.parse(html)
SANITIZER.call(fragment)
scrubbers = SCRUBBERS + post_processor_scrubbers
scrubber = Loofah::Scrubber.new do |node|
(SCRUBBERS + post_processor_scrubbers).each do |s|
scrubbers.each do |s|
result = s.scrub(node)
break result if result == Loofah::Scrubber::STOP
break if node.parent.nil?
lib/redmine/wiki_formatting/textile/formatter.rb
html = @filter.to_html(rules)
fragment = Loofah.html5_fragment(html)
scrubbers = SCRUBBERS + post_processor_scrubbers
scrubber = Loofah::Scrubber.new do |node|
(SCRUBBERS + post_processor_scrubbers).each do |s|
scrubbers.each do |s|
result = s.scrub(node)
break result if result == Loofah::Scrubber::STOP
break if node.parent.nil?
(2-2/2)