class LeagueHtmlToMarkdownConverter
@author Fabien Potencier <fabien@symfony.com>
Hierarchy
- class \Symfony\Component\Mime\HtmlToTextConverter\LeagueHtmlToMarkdownConverter implements \Symfony\Component\Mime\HtmlToTextConverter\HtmlToTextConverterInterface
Expanded class hierarchy of LeagueHtmlToMarkdownConverter
File
-
vendor/
symfony/ mime/ HtmlToTextConverter/ LeagueHtmlToMarkdownConverter.php, line 20
Namespace
Symfony\Component\Mime\HtmlToTextConverterView source
class LeagueHtmlToMarkdownConverter implements HtmlToTextConverterInterface {
public function __construct(HtmlConverterInterface $converter = new HtmlConverter([
'hard_break' => true,
'strip_tags' => true,
'remove_nodes' => 'head style',
])) {
}
public function convert(string $html, string $charset) : string {
return $this->converter
->convert($html);
}
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overriden Title |
---|---|---|---|---|
LeagueHtmlToMarkdownConverter::convert | public | function | Converts an HTML representation of a Message to a text representation. | Overrides HtmlToTextConverterInterface::convert |
LeagueHtmlToMarkdownConverter::__construct | public | function |