Skip to content

Commit 7a2179a

Browse files
committed
by pass $this->dom->documentElement to saveHTML(), the mb_strpos is not needed, use strpos instead
1 parent 8c3e677 commit 7a2179a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

system/Test/DOMParser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ public function see(string $search = null, string $element = null): bool
143143
if (is_null($element))
144144
{
145145
$content = $this->dom->saveHTML($this->dom->documentElement);
146-
return mb_strpos($content, $search) !== false;
146+
return strpos($content, $search) !== false;
147147
}
148148

149149
$result = $this->doXPath($search, $element);

0 commit comments

Comments
 (0)