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:
parent
32492cf119
commit
075ba1739c
@ -148,7 +148,8 @@ class Utils {
|
|||||||
$parseDown
|
$parseDown
|
||||||
->setMarkupEscaped(true)
|
->setMarkupEscaped(true)
|
||||||
->setBreaksEnabled(true)
|
->setBreaksEnabled(true)
|
||||||
->setUrlsLinked(false);
|
->setSafeMode(true)
|
||||||
|
;
|
||||||
|
|
||||||
if ($line) {
|
if ($line) {
|
||||||
$html = $parseDown->line($md);
|
$html = $parseDown->line($md);
|
||||||
|
Loading…
Reference in New Issue
Block a user