1
0
Fork 0
mirror of https://github.com/sbrl/Pepperminty-Wiki.git synced 2024-12-22 13:45:02 +00:00

[parser] Simplify code by removing if statement

This commit is contained in:
Starbeamrainbowlabs 2019-01-05 16:23:12 +00:00
parent b350d5a32e
commit 4bf7881e5c
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

View file

@ -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;