Disable escaping html

I’m using SyntaxHighlighter Evolved to highlight code examples.
E.g.

[csharp]
string s = "text";
List<int> numbers = new List<int>();
[/csharp]

When I first save it, it’s ok, but when editing wordpress changes the text to

[csharp]
string s = &quot;text&quot;;
List&lt;int&gt; numbers = new List&lt;int&gt;();
[/csharp]   

After second edit it becomes

[csharp]
string s = &amp;quot;text&amp;quot;;
List&amp;lt;int&amp;gt; numbers = new List&amp;lt;int&amp;gt;();
[/csharp]   

How do I disable escaping? I want the content to be exactly what I type.

3 Answers
3

I just installed SyntaxHighlighter Evolved, and while testing on an existing post I was dismayed to find that all the quotes " had been converted to &quot; (the single quotes were fine). I was using the HTML editor.

In case you are also in this position, I found that it’s just the post preview that is escaped – when you Publish it appears fine.

Leave a Comment