aboutsummaryrefslogtreecommitdiffstats
path: root/include/markdown.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2018-09-12 11:14:49 +0200
committerMario Vavti <mario@mariovavti.com>2018-09-12 11:14:49 +0200
commit184928204a264b231814b46ef294ef185dc0cdae (patch)
treeb4b0e390738b97cc380daaae67cdf7a51035d99a /include/markdown.php
parent2651eae663869e78aa0166bd33ac80a44b26b5ea (diff)
downloadvolse-hubzilla-184928204a264b231814b46ef294ef185dc0cdae.tar.gz
volse-hubzilla-184928204a264b231814b46ef294ef185dc0cdae.tar.bz2
volse-hubzilla-184928204a264b231814b46ef294ef185dc0cdae.zip
Fix PHP Warning: DOMDocument::loadHTML(): htmlParseEntityRef: no name in Entity
Diffstat (limited to 'include/markdown.php')
-rw-r--r--include/markdown.php2
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());