Red Hat Bugzilla – Bug 820006
Code in comments is double escaped
Last modified: 2015-11-01 19:29:45 EST
Created attachment 583072 [details]
Screenshot of character codes displaying in code snippet in forum comment
Description of problem:
Code snippets in comments on the community site are double escaped, so escaped characters are output as &<char code>; and are displayed as &<char code>; instead of being output and displayed correctly. This is especially egregious in code snippets, since these special characters are often important to the code.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Write a comment in the community site
2. Add a code snippet with some special characters (like double quotes)
Special characters are displayed as character codes due to double escaping. (i.e. " => ")
Special characters should only be escaped once and display correctly
See attached screenshot
Fabiano can you take a look at this? Maybe overaggressive filter. The markdown filter should be the default but maybe it got reverted (you have to configure it via the content type permissions).
This problem still exist on stage-198.
I'm going to fix this by reswizzling all the default formats. Summary:
Update default format to allow markdown and geshi, but tweak the order so that markdown doesn't get clobbered.
Make all default formats for everyone everywhere use the default format.
Test in stage please, creating comments in the default format. If this passes test in stage i'll change it in production.
Also, non admins only have access to MediaWiki and default formats now.
(In reply to comment #4)
Tested this issue on stage today, it can pass the test, thanks.