We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c345d26 commit 2991070Copy full SHA for 2991070
1 file changed
src/zhihu.php
@@ -14,7 +14,7 @@
14
initDownloadDir(true);
15
16
$response = request('https://www.zhihu.com/autocomplete?token='.urlencode($query));
17
-$json = json_decode(mb_convert_encoding($response, 'UTF-8', 'HTML-ENTITIES'))[0];
+$json = json_decode(html_entity_decode($response, ENT_QUOTES | ENT_HTML5))[0];
18
19
foreach ($json as $sugg) {
20
if (is_array($sugg)) {
0 commit comments