Defect #44348 » 0001-Fix-formatting-a-text-being-much-slower-in-7.0.0-whe.patch
| 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?
|
||
- « Previous
- 1
- 2
- Next »