Making SyntaxHighlighter plugin display “>” symbol correctly.

My SyntaxHighlighter plugin started to display “>” as “ = & g t ;” after I updated my WordPress to a version where blocks were added. To fix the plugin I added the following line to wp-content/plugins/syntaxhighlighter/syntaxhighlighter.php:

$code = preg_replace( '#<pre [^>]+>([^<]+)?</pre>#', '$1', $content );

// Undo escaping done by WordPress
$code = htmlspecialchars_decode( $code );

return $this->shortcode_callback( $attributes, $code, 'code' );

1 Response to Making SyntaxHighlighter plugin display “>” symbol correctly.

  1. Craig on May 22, 2019 at 3:15 PM:

    Submitted a pull request so hopefully this gets fixed in an updated version of the plugin soon:
    https://github.com/Viper007Bond/syntaxhighlighter/pull/109

Leave a Reply

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