Fix PHP Warning: DOMDocument::loadHTML(): htmlParseEntityRef: no name in Entity
This commit is contained in:
parent
2651eae663
commit
184928204a
@ -295,6 +295,8 @@ function bb_to_markdown($Text, $options = []) {
|
||||
*/
|
||||
function html2markdown($html,$options = []) {
|
||||
$markdown = '';
|
||||
|
||||
$html = htmlspecialchars($html);
|
||||
|
||||
$environment = Environment::createDefaultEnvironment($options);
|
||||
$environment->addConverter(new TableConverter());
|
||||
|
Reference in New Issue
Block a user