Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. LeagueHtmlToMarkdownConverter.php

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\HtmlToTextConverter
View 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

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal