Fixing WordPress escaping

Most of my posts about WordPress were positive. Today I’ll mention one of the annoying features it has by default and how to fix it.

Escaping. By default, all text in the <pre>…</pre> block is passed through escaping subroutine. Most noticeble change happened to double quotes (“). They were escaped with the backslash (\). Needless to say that rendered many code bits useless.

The fix is very easy. One just have to install code-markup.php plugin. It has some additional functionality too, but for me all the value was in the unescaping routine.

I’ve installed the plugin for this site and the problem is gone now.

2 thoughts on “Fixing WordPress escaping”

Leave a Comment