/var/www/vhosts/ihelp.ro/httpdocs/vendor/twig/markdown-extra
NameSizeModeActions
.gitattributes530644editdlrm
.gitignore560644editdlrm
composer.json9500644editdlrm
DefaultMarkdown.php10830644editdlrm
ErusevMarkdown.php5690644editdlrm
LeagueMarkdown.php8300644editdlrm
LICENSE10680644editdlrm
MarkdownExtension.php13620644editdlrm
MarkdownInterface.php3170644editdlrm
MarkdownRuntime.php6830644editdlrm
MichelfMarkdown.php7060644editdlrm
README.md3550644editdlrm
Edit: /var/www/vhosts/ihelp.ro/httpdocs/vendor/twig/markdown-extra/MarkdownExtension.php (1362B)
['all']]), new TwigFilter('html_to_markdown', 'Twig\\Extra\\Markdown\\twig_html_to_markdown', ['is_safe' => ['all']]), ]; } } function twig_html_to_markdown(string $body, array $options = []): string { static $converters; if (!class_exists(HtmlConverter::class)) { throw new \LogicException('You cannot use the "html_to_markdown" filter as league/html-to-markdown is not installed; try running "composer require league/html-to-markdown".'); } $options = $options + [ 'hard_break' => true, 'strip_tags' => true, 'remove_nodes' => 'head style', ]; if (!isset($converters[$key = serialize($options)])) { $converters[$key] = new HtmlConverter($options); } return $converters[$key]->convert($body); }