From dc433ae38f5b643d94b2854c9c2d20c290662a25 Mon Sep 17 00:00:00 2001 From: Peter Kiss Date: Tue, 8 Sep 2020 15:47:25 +0200 Subject: [PATCH] Remove wrapper --- src/save.js | 4 +--- syntaxhighlighter.php | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/save.js b/src/save.js index 06ee8a2..14fa000 100644 --- a/src/save.js +++ b/src/save.js @@ -5,8 +5,6 @@ import { escape } from './utils'; export default function save( { attributes } ) { return ( -
-			{ escape( attributes.content ) }
-		
+
{ escape( attributes.content ) }
); } diff --git a/syntaxhighlighter.php b/syntaxhighlighter.php index ae61ab6..43b69a0 100644 --- a/syntaxhighlighter.php +++ b/syntaxhighlighter.php @@ -527,7 +527,7 @@ public function render_block( $attributes, $content ) { } } - $code = preg_replace( '#
]+>([^<]+)?
#', '$1', $content ); + $code = preg_replace( '#
]+>([^<]+)?
#', '$1', $content ); // Undo escaping done by WordPress $code = str_replace( '<', '<', $code );