From 184928204a264b231814b46ef294ef185dc0cdae Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Wed, 12 Sep 2018 11:14:49 +0200 Subject: [PATCH] Fix PHP Warning: DOMDocument::loadHTML(): htmlParseEntityRef: no name in Entity --- include/markdown.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/markdown.php b/include/markdown.php index e5f5b9369..0d810764f 100644 --- a/include/markdown.php +++ b/include/markdown.php @@ -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());