more markdown purification
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user