diff options
author | Mario Vavti <mario@mariovavti.com> | 2018-09-12 11:14:49 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2018-09-12 11:14:49 +0200 |
commit | 184928204a264b231814b46ef294ef185dc0cdae (patch) | |
tree | b4b0e390738b97cc380daaae67cdf7a51035d99a | |
parent | 2651eae663869e78aa0166bd33ac80a44b26b5ea (diff) | |
download | volse-hubzilla-184928204a264b231814b46ef294ef185dc0cdae.tar.gz volse-hubzilla-184928204a264b231814b46ef294ef185dc0cdae.tar.bz2 volse-hubzilla-184928204a264b231814b46ef294ef185dc0cdae.zip |
Fix PHP Warning: DOMDocument::loadHTML(): htmlParseEntityRef: no name in Entity
-rw-r--r-- | include/markdown.php | 2 |
1 files changed, 2 insertions, 0 deletions
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()); |