From 0205a4cbe640f0f5052974500d93c7b0404b7a15 Mon Sep 17 00:00:00 2001 From: Aidan Woods Date: Sun, 18 Mar 2018 22:46:08 +0000 Subject: [PATCH] Use rawHtml to provide conditional escaping on special chars --- Parsedown.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Parsedown.php b/Parsedown.php index ec0f0a9..546beae 100644 --- a/Parsedown.php +++ b/Parsedown.php @@ -1189,7 +1189,7 @@ class Parsedown if (isset($Excerpt['text'][1]) and in_array($Excerpt['text'][1], $this->specialCharacters)) { return array( - 'markup' => $Excerpt['text'][1], + 'element' => array('rawHtml' => $Excerpt['text'][1]), 'extent' => 2, ); }