/source.json: don't encode '&' as '&' in commentaries.
This commit is contained in:
@@ -103,6 +103,7 @@ module Sources
|
|||||||
# this to customize how their markup is translated to dtext.
|
# this to customize how their markup is translated to dtext.
|
||||||
def self.to_dtext(text)
|
def self.to_dtext(text)
|
||||||
text = Rails::Html::FullSanitizer.new.sanitize(text, encode_special_chars: false)
|
text = Rails::Html::FullSanitizer.new.sanitize(text, encode_special_chars: false)
|
||||||
|
text = CGI::unescapeHTML(text)
|
||||||
text
|
text
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user