quick fix for wp-syntax’ plugin wrong html-entitiy escaping

In the last bog post, I run into trouble with the escaping of html entities of the wp-syntax plugin:

As you can see, the ‘<‘and ‘>’ are escaped again leading to a wrong behaviour.

The quick yet dirty way to fix that is to usescape them by yourself and set the escaped attribute to true:

<pre lang=”php” escaped=”true”>
echo “correctly ecaped html entities”;

Leave a Reply

Your email address will not be published. Required fields are marked *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.