Replacing html-pipeline with Loofah for HTML Filtering (#42737).

Patch by Takashi Kato (user:tohosaku).



git-svn-id: https://svn.redmine.org/redmine/trunk@24094 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Marius Balteanu
2025-10-31 06:38:27 +00:00
parent 19927b2382
commit d89a3b5e6f
17 changed files with 214 additions and 137 deletions

View File

@@ -28,6 +28,10 @@ module Redmine
'style' => ''
}
def self.parse(html)
Loofah.html5_fragment(html)
end
def self.to_text(html)
html = html.gsub(/[\n\r]/, ' ')