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

Breadcrumb

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

function HtmlToTextConverterInterface::convert

Converts an HTML representation of a Message to a text representation.

The output must use the same charset as the HTML one.

2 methods override HtmlToTextConverterInterface::convert()
DefaultHtmlToTextConverter::convert in vendor/symfony/mime/HtmlToTextConverter/DefaultHtmlToTextConverter.php
Converts an HTML representation of a Message to a text representation.
LeagueHtmlToMarkdownConverter::convert in vendor/symfony/mime/HtmlToTextConverter/LeagueHtmlToMarkdownConverter.php
Converts an HTML representation of a Message to a text representation.

File

vendor/symfony/mime/HtmlToTextConverter/HtmlToTextConverterInterface.php, line 24

Class

HtmlToTextConverterInterface
@author Fabien Potencier <fabien@symfony.com>

Namespace

Symfony\Component\Mime\HtmlToTextConverter

Code

public function convert(string $html, string $charset) : string;

API Navigation

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