mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-31 01:34:09 +02:00
Add Markdown::line()
This commit is contained in:
parent
a00151ef5c
commit
c196631f5a
@ -7,6 +7,13 @@ use Parsedown;
|
|||||||
|
|
||||||
class Markdown
|
class Markdown
|
||||||
{
|
{
|
||||||
|
public static function line($content)
|
||||||
|
{
|
||||||
|
require_once 'Parsedown/Parsedown.php';
|
||||||
|
|
||||||
|
return HtmlPurifier::process(Parsedown::instance()->line($content));
|
||||||
|
}
|
||||||
|
|
||||||
public static function text($content)
|
public static function text($content)
|
||||||
{
|
{
|
||||||
require_once 'Parsedown/Parsedown.php';
|
require_once 'Parsedown/Parsedown.php';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user