From 4bf7881e5c30c8d2e6b9733a35a436f197597f47 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Sat, 5 Jan 2019 16:23:12 +0000 Subject: [PATCH] [parser] Simplify code by removing if statement --- modules/parser-parsedown.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/modules/parser-parsedown.php b/modules/parser-parsedown.php index 322dc61..647377b 100644 --- a/modules/parser-parsedown.php +++ b/modules/parser-parsedown.php @@ -12,10 +12,7 @@ register_module([ $parser->setInternalLinkBase("?page=%s"); add_parser("parsedown", function($source) use ($parser) { global $settings; - if($settings->clean_raw_html) - $parser->setMarkupEscaped(true); - else - $parser->setMarkupEscaped(false); + $parser->setMarkupEscaped($settings->clean_raw_html); $result = $parser->text($source); return $result;