diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/Core/Helper.php | 2 | ||||
-rw-r--r-- | app/constants.php | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/app/Core/Helper.php b/app/Core/Helper.php index 883e457e..1dea832a 100644 --- a/app/Core/Helper.php +++ b/app/Core/Helper.php @@ -502,7 +502,7 @@ class Helper public function markdown($text, array $link = array()) { $parser = new Markdown($link, $this); - $parser->setMarkupEscaped(MARKDOWN_ESCAPED); + $parser->setMarkupEscaped(MARKDOWN_ESCAPED); return $parser->text($text); } diff --git a/app/constants.php b/app/constants.php index 82d26f2c..8c23da81 100644 --- a/app/constants.php +++ b/app/constants.php @@ -74,3 +74,5 @@ defined('ENABLE_XFRAME') or define('ENABLE_XFRAME', true); // Default files directory defined('FILES_DIR') or define('FILES_DIR', 'data/files/'); +// Escape html inside markdown text +define('MARKDOWN_ESCAPED', true); |