Post editor replaces symbols with HTML codes in source code snippets
-
This problem used to occur occasionally, but now it occurs consistently every time I work on a post.
The problem is that, when I type code into the wordpress post editor inside a
[code]block, all symbols like<,>and&are replaced with their html character codes (e.g.<) upon reloading the draft. What's worse is it compounds, because the ampersand in a character code is later replaced by its own character code in turn. So I get code snippets that look like&lt;What's worse is that these character codes are not even rendered correctly when the page loads in practice, leaving a bunch of ugly raw html character codes in the body of my articles. This is clearly a bug with the editor that needs to be fixed.My readers are complaining because if I ever go back to edit a mistake in a post, and I don't remember to manually fix the ten or fifteen lines of code that are messed up by this bug, then it suddenly shows up in the post again.
Please do not replace symbols with character codes in source code snippets! They should be displayed verbatim.
The blog I need help with is: (visible only to logged in users)
-
Ugh, and the markup in this forum even can’t render my code samples verbatim! This is extremely frustrating.
-
-
- The topic ‘Post editor replaces symbols with HTML codes in source code snippets’ is closed to new replies.