mirror of
https://github.com/redmine/redmine.git
synced 2025-11-10 07:16:03 +01:00
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:
@@ -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]/, ' ')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user