replace html entities in posts between pre tags
I run a wordpress blog with a syntax highlighter plugin (Crayon). The plugin highlights code between pre tags, example:
pre class="lang:languageid" title="example"
some code
/pre
Wordpress sometimes replaces characters suchs as "
with html entities which are shown in the code quot;
amp;
etc. I tried several plugins that should prevent this but they don't (always) work.
Is there an easy method to bulk edit old posts and search for entities between pre
tags en replace them with the character? Or would it be easier to use a replace function on display and replace entities with their characters?
Any suggestions to prevent this in the future are welcome as well (perhaps extend/modify crayon?).
I usually write my blogs with Windows Live Writer but the behaviour also occurs when editing posts with the builtin editor.
Topic pre syntax-highlighting customization Wordpress
Category Web