Skip to content

HtmlConverterInterface

Interface for an HTML-to-Markdown converter.

  • Full name: \League\HTMLToMarkdown\HtmlConverterInterface

See Also:

  • https://github.com/thephpleague/html-to-markdown/ - Latest version on GitHub.

Methods

convert

Convert the given $html to Markdown

public convert(string $html): string

Parameters:

Parameter Type Description
$html string

Return Value:

The Markdown version of the html

Throws:



Automatically generated on 2025-03-18