Enable Parsedown Safe-Mode

Also remove the setUrlsLinked(false) so that we can haz urls

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2018-04-11 17:50:49 +02:00
parent 32492cf119
commit 075ba1739c
No known key found for this signature in database
GPG Key ID: A061B9DDE0CA0773
1 changed files with 2 additions and 1 deletions

View File

@ -148,7 +148,8 @@ class Utils {
$parseDown
->setMarkupEscaped(true)
->setBreaksEnabled(true)
->setUrlsLinked(false);
->setSafeMode(true)
;
if ($line) {
$html = $parseDown->line($md);