I am trying to convert a small html sentence, that has a bunch of quotes (single and double). But the result is not correct. The sentence is: $html = '<p>Hey, “Don’t go out”.</p>';
Here is my code:
<?php
require 'vendor/autoload.php';
use League\HTMLToMarkdown\HtmlConverter;
$converter = new HtmlConverter(array('header_style'=>'atx', 'strip_tags' => true));
$html = '<p>Hey, “Don’t go out”.</p>';
$markdown = $converter->convert($html);
echo $markdown.'<br>'; exit;
Not sure whether the library is capable of converting this. Any ideas please.
I am trying to convert a small html sentence, that has a bunch of quotes (single and double). But the result is not correct. The sentence is:
$html = '<p>Hey, “Don’t go out”.</p>';
Here is my code:
Not sure whether the library is capable of converting this. Any ideas please.