Thread:Extension talk:WYSIWYG/Problem: latest version (1.6.0 7) breaks HTML characters when switching from text editor to WYSIWYG editor

Problem: whenever I switch from the text editor to the WYSIWYG editor (by clicking on the link "Show RichTextEditor"), all special characters such as ">" and "<" become escaped, breaking all HTML tags. For example, "<" becomes "& l t ;" (without the spaces). Worse, when this happens if I use IE7 to save the page, it becomes a blank page; if I save it using FireFox, I get the page with broken HTML tags.

Steps to reproduce:

1. Locate a wiki page that contains HTML characters such as ">" and "<".

2. Go to another page (not the page in step 1), click on EDIT, and make sure the text editor is what comes up by default. If not and the rich text editor is what shows up, click on the "show WikiTextEditor" link to switch to the text editor, then go back to the page in step 1.

3. Now click on EDIT. The source code should look fine.

4. Now click on the "show RichTextEditor" link. Now, the WYSIWYG editor will show the broken HTML tag.

5. Switch back to the text editor. Now it will show the source of the broken HTML tag.

Here is a screenshot that shows the entire problem: http://public-share-485.s3.amazonaws.com/WYSI%20bug%20report.jpg