From a2a6a0ce27e65d623b7f87e0b98458ddc97e9191 Mon Sep 17 00:00:00 2001 From: evazion Date: Mon, 1 May 2017 21:25:08 -0500 Subject: [PATCH] /source.json: don't encode '&' as '&' in commentaries. --- app/logical/sources/strategies/base.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/logical/sources/strategies/base.rb b/app/logical/sources/strategies/base.rb index 25e25ab48..c47822175 100644 --- a/app/logical/sources/strategies/base.rb +++ b/app/logical/sources/strategies/base.rb @@ -103,6 +103,7 @@ module Sources # this to customize how their markup is translated to dtext. def self.to_dtext(text) text = Rails::Html::FullSanitizer.new.sanitize(text, encode_special_chars: false) + text = CGI::unescapeHTML(text) text end end