Convert HTML to Markdown with HtmlConverter
masterThe primary way to use the library is to instantiate League\HTMLToMarkdown\HtmlConverter and call its convert() method with your HTML string.
use League\HTMLToMarkdown\HtmlConverter;
$converter = new HtmlConverter();
$html = "<h3>Quick, to the Batpoles!</h3>";
$markdown = $converter->convert($html);
echo $markdown; // ==> ### Quick, to the Batpoles!