WordPress

Special character mangling in WordPress and SyntaxHighlighter

The SyntaxHighlighter WordPress plug-in is used to display code ‘as is’; unfortunately WordPress again is too clever for its own good and mangles special characters like & and ” even before the text gets to the SyntaxHighlighter blocks in the Block Editor.

The solution is to add a filter function in your custom functions.php file:

Continue reading Special character mangling in WordPress and SyntaxHighlighter