fixup! /source.json: don't encode '&' as '&' in commentaries.
This commit is contained in:
@@ -102,6 +102,7 @@ module Sources
|
||||
# Convert commentary to dtext by stripping html tags. Sites can override
|
||||
# this to customize how their markup is translated to dtext.
|
||||
def self.to_dtext(text)
|
||||
text = text.to_s
|
||||
text = Rails::Html::FullSanitizer.new.sanitize(text, encode_special_chars: false)
|
||||
text = CGI::unescapeHTML(text)
|
||||
text
|
||||
|
||||
Reference in New Issue
Block a user