* remove buggy, weird and seemingly useless content filtering, bug #50346.

This commit is contained in:
liwenrui
2024-05-31 09:37:18 +08:00
parent e9388c5476
commit 6ab8a7bd49
-2
View File
@@ -1118,8 +1118,6 @@ class baseFixer
* purifier会把 替换空格,kindeditor再会把行首的空格去掉。
* purifier will change   to ' ', and kindeditor will remove the header space again.
**/
$data = preg_replace('/<[^>]+</', '<', $data);
$data = preg_replace('/>[^<]+>/', '>', $data);
if($usePurifier) $data = str_replace('&nbsp;', '&spnb;', $data);
$data = $usePurifier ? $purifier->purify($data) : strip_tags($data, $allowedTags);
if($usePurifier) $data = str_replace('&amp;spnb;', '&nbsp;', $data);