Open mathieu-mbru opened 2 years ago
A more generic solution may be this one. Can you please give it a try?
- source = doc.to_s
+ source = CGI.unescapeHTML doc.to_s
Well, thank you for this solution.
Any updates on this pull? Faced this issue, spent hours to find root of issue with js code after applying deface patches on redmine.
Replace
source = doc.to_s
bysource = doc.to_s.gsub('<', '<').gsub('>', '>').gsub('&', '&')
for transforming the encodings