diff --git a/syntaxhighlighter.php b/syntaxhighlighter.php index 2b2c057..f3f1085 100644 --- a/syntaxhighlighter.php +++ b/syntaxhighlighter.php @@ -554,7 +554,7 @@ public function render_block( $attributes, $content ) { } } - $code = preg_replace( '#
]+>([^<]+)?
#', '$1', $content ); + $code = preg_replace( '#
]+>(.*)
#s', '$1', $content ); // Undo escaping done by WordPress $code = htmlspecialchars_decode( $code );