From 82631c3413b7fc7025f46cd23c17d3ea292cf16c Mon Sep 17 00:00:00 2001 From: zotlabs Date: Tue, 21 Mar 2017 00:40:19 -0700 Subject: more markdown purification --- Zotlabs/Lib/MarkdownSoap.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'Zotlabs/Lib') 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",'
',$s); - $s = str_replace("\t",'    ',$s); - $s = str_replace(' ',' ',$s); +// $s = str_replace("\n",'
',$s); +// $s = str_replace("\t",'    ',$s); +// $s = str_replace(' ',' ',$s); $s = purify_html($s); - $s = str_replace([' ', mb_convert_encoding(' ','UTF-8','HTML-ENTITIES')], [ ' ', ' ' ],$s); - $s = str_replace(['
','
', '<', '>' ],["\n","\n", '<', '>'],$s); +// $s = str_replace([' ', mb_convert_encoding(' ','UTF-8','HTML-ENTITIES')], [ ' ', ' ' ],$s); +// $s = str_replace(['
','
', '<', '>' ],["\n","\n", '<', '>'],$s); return $s; } -- cgit v1.2.3