diff options
author | zotlabs <mike@macgirvin.com> | 2017-03-21 00:40:19 -0700 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2017-03-29 14:05:12 +0200 |
commit | 542fa4a08c3f58d60c729ee166a2c4dc92f7524e (patch) | |
tree | bd96ee05e7a939420ea46b31fa9f9c948206f759 /Zotlabs/Lib/MarkdownSoap.php | |
parent | 515f1e76b05c5b4544b7ee624d73cc3b7878d5ea (diff) | |
download | volse-hubzilla-542fa4a08c3f58d60c729ee166a2c4dc92f7524e.tar.gz volse-hubzilla-542fa4a08c3f58d60c729ee166a2c4dc92f7524e.tar.bz2 volse-hubzilla-542fa4a08c3f58d60c729ee166a2c4dc92f7524e.zip |
more markdown purification
Diffstat (limited to 'Zotlabs/Lib/MarkdownSoap.php')
-rw-r--r-- | Zotlabs/Lib/MarkdownSoap.php | 10 |
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",' ',$s); - $s = str_replace(' ',' ',$s); +// $s = str_replace("\n",'<br>',$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(['<br>','<br />', '<', '>' ],["\n","\n", '<', '>'],$s); +// $s = str_replace([' ', mb_convert_encoding(' ','UTF-8','HTML-ENTITIES')], [ ' ', ' ' ],$s); +// $s = str_replace(['<br>','<br />', '<', '>' ],["\n","\n", '<', '>'],$s); return $s; } |