a javascript error is reported on all overrided pages containing javascript with charaters (>,&,<)#229
a javascript error is reported on all overrided pages containing javascript with charaters (>,&,<)#229mathieu-mbru wants to merge 4 commits intospree:masterfrom
Conversation
…('>', '>').gsub('&', '&') for transforming the encodings
|
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. |
|
Hi, I can reproduce the bug in a different situation that makes me suffer this last two years, and the PR fixes it! given that files:
Then if I do an override on Deface is heavily used by Decidim ecosystem to do modules, so we do know this bug have been there for a while. I would really appreciate if we could merge the PR, this will enable to have much more straight forward use of the gem. Edit: using deface |
|
Hey @froger Happy to move this repo outside of Spree org to a dedicated one and hand over maintenance. We don't use Deface at Spree anymore, hence our reduced engagement here |
|
Hey @damianlegawiec, |
|
Thanks @damianlegawiec, need some time to answer that one. It might be a good solution for us, but need to gather feedbacks first. |
|
Hi @damianlegawiec, I will contact you in MP to know more about how we can make the switch effective in rubygem too. |
Replace
source = doc.to_sbysource = doc.to_s.gsub('<', '<').gsub('>', '>').gsub('&', '&')for transforming the encodings