aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Lib
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-03-21 00:40:19 -0700
committerzotlabs <mike@macgirvin.com>2017-03-21 00:40:19 -0700
commit82631c3413b7fc7025f46cd23c17d3ea292cf16c (patch)
tree39f82e43f8f948c7f12e9ed3c13fd24c58936cb7 /Zotlabs/Lib
parentb153c651b45842b0062c0b32a1a3816a1f06856c (diff)
downloadvolse-hubzilla-82631c3413b7fc7025f46cd23c17d3ea292cf16c.tar.gz
volse-hubzilla-82631c3413b7fc7025f46cd23c17d3ea292cf16c.tar.bz2
volse-hubzilla-82631c3413b7fc7025f46cd23c17d3ea292cf16c.zip
more markdown purification
Diffstat (limited to 'Zotlabs/Lib')
-rw-r--r--Zotlabs/Lib/MarkdownSoap.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/Zotlabs/Lib/MarkdownSoap.php b/Zotlabs/Lib/MarkdownSoap.php
index e5f3c81dd..a0214bbe4 100644
--- a/Zotlabs/Lib/MarkdownSoap.php
+++ b/Zotlabs/Lib/MarkdownSoap.php
@@ -77,12 +77,12 @@ class MarkdownSoap {
}
function purify($s) {
- $s = str_replace("\n",'<br>',$s);
- $s = str_replace("\t",'&nbsp;&nbsp;&nbsp;&nbsp;',$s);
- $s = str_replace(' ','&nbsp;',$s);
+// $s = str_replace("\n",'<br>',$s);
+// $s = str_replace("\t",'&nbsp;&nbsp;&nbsp;&nbsp;',$s);
+// $s = str_replace(' ','&nbsp;',$s);
$s = purify_html($s);
- $s = str_replace(['&nbsp;', mb_convert_encoding('&#x00a0;','UTF-8','HTML-ENTITIES')], [ ' ', ' ' ],$s);
- $s = str_replace(['<br>','<br />', '&lt;', '&gt;' ],["\n","\n", '<', '>'],$s);
+// $s = str_replace(['&nbsp;', mb_convert_encoding('&#x00a0;','UTF-8','HTML-ENTITIES')], [ ' ', ' ' ],$s);
+// $s = str_replace(['<br>','<br />', '&lt;', '&gt;' ],["\n","\n", '<', '>'],$s);
return $s;
}