Skip to content

Commit 1428bc5

Browse files
authored
Update Code
1 parent 8fc73f0 commit 1428bc5

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

Helper/Entity/PageHelper.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -196,13 +196,7 @@ private function strip($s, $completeRemoveTags = [])
196196
if ($completeRemoveTags && $completeRemoveTags !== [] && $s) {
197197
$dom = new \DOMDocument();
198198
libxml_use_internal_errors(true);
199-
$encodedStr = mb_encode_numericentity(
200-
htmlspecialchars_decode(
201-
htmlentities($s, ENT_NOQUOTES, 'UTF-8', false)
202-
,ENT_NOQUOTES
203-
), [0x80, 0x10FFFF, 0, ~0],
204-
'UTF-8'
205-
);
199+
$encodedStr = mb_encode_numericentity($s, [0x80, 0x10fffff, 0, ~0]);
206200
$dom->loadHTML($encodedStr);
207201
libxml_use_internal_errors(false);
208202

0 commit comments

Comments
 (0)