fixup! /source.json: don't encode '&' as '&' in commentaries.

This commit is contained in:
evazion
2017-05-10 21:03:29 -05:00
parent f623aafc04
commit 757a7da49b
2 changed files with 14 additions and 0 deletions

View File

@@ -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