From 9c875fb5577e409c7bb758db37c6d8a69d574c6b Mon Sep 17 00:00:00 2001 From: Jeremy Herve Date: Sat, 22 Mar 2014 14:47:34 +0000 Subject: [PATCH] Markdown: decode single quotes in fenced code blocks Props @synapticism See #403 --- _inc/lib/markdown/gfm.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_inc/lib/markdown/gfm.php b/_inc/lib/markdown/gfm.php index c6ca8e88f9b91..b54e0b84edf48 100644 --- a/_inc/lib/markdown/gfm.php +++ b/_inc/lib/markdown/gfm.php @@ -167,7 +167,7 @@ public function codeblock_restore( $text ) { * @return string Codeblock with unescaped interior */ public function do_codeblock_restore( $matches ) { - $block = html_entity_decode( $matches[3] ); + $block = html_entity_decode( $matches[3], ENT_QUOTES ); $open = $matches[1] . $matches[2] . "\n"; return $open . $block . $matches[4]; }