mirror of
https://github.com/sbrl/Pepperminty-Wiki.git
synced 2024-11-22 04:23:01 +00:00
[parser] Simplify code by removing if statement
This commit is contained in:
parent
b350d5a32e
commit
4bf7881e5c
1 changed files with 1 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue