aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Lib/MarkdownSoap.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-03-20 19:41:03 -0700
committerzotlabs <mike@macgirvin.com>2017-03-20 19:41:03 -0700
commit35fc7328de3237ef9727e6f729ffe4df4697a421 (patch)
treeab8aeb57ace7c03c660edcd740e512de44e0db54 /Zotlabs/Lib/MarkdownSoap.php
parent7a611c6d47020d227630a96de8026da4dae5f862 (diff)
downloadvolse-hubzilla-35fc7328de3237ef9727e6f729ffe4df4697a421.tar.gz
volse-hubzilla-35fc7328de3237ef9727e6f729ffe4df4697a421.tar.bz2
volse-hubzilla-35fc7328de3237ef9727e6f729ffe4df4697a421.zip
even more fine tuning of the markdown purifier - especially when used with the wiki
Diffstat (limited to 'Zotlabs/Lib/MarkdownSoap.php')
-rw-r--r--Zotlabs/Lib/MarkdownSoap.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zotlabs/Lib/MarkdownSoap.php b/Zotlabs/Lib/MarkdownSoap.php
index 8cc18d513..cf1446f45 100644
--- a/Zotlabs/Lib/MarkdownSoap.php
+++ b/Zotlabs/Lib/MarkdownSoap.php
@@ -81,7 +81,7 @@ class MarkdownSoap {
$s = str_replace("\t",'&nbsp;&nbsp;&nbsp;&nbsp;',$s);
$s = str_replace(' ','&nbsp;',$s);
$s = purify_html($s);
- $s = str_replace('&nbsp;'," ",$s);
+ $s = str_replace(['&nbsp;', mb_convert_encoding('&#x00a0;','UTF-8','HTML-ENTITIES')], [ ' ', ' ' ],$s);
$s = str_replace(['<br>','<br />'],["\n","\n"],$s);
return $s;
}