Support » Fixing WordPress » Switching between visual and html editor corrupts html code in pre tags
8 years, 4 months ago
Enter the following in the HTML editor
Google syntax highlighter latest version is also installed.
<pre name="code" class="html">
This is an old bug but should really be fixed. At least have the editor ask if you want your html changed. This will also strip out iframes used for such things as ads.
I generally disable the visual editor for this reason.
8 years, 3 months ago
So how do you guys generally get around this issue then? Even if I stay strictly in the HTML editor, because of the auto paragraph, I still can’t get my pre or code tags to come out right.