From 679a1186870a1f6c0cf21378f2b2bb4ebe66c97b Mon Sep 17 00:00:00 2001 From: Core Date: Fri, 12 Apr 2019 14:04:16 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A0=E5=85=A5decodeEntities:=20false?= =?UTF-8?q?=E5=AD=97=E6=AE=B5=EF=BC=8C=E7=A1=AE=E4=BF=9Dcheerio=E8=BF=94?= =?UTF-8?q?=E5=9B=9E=E9=9D=9Ehtml=E5=AE=9E=E4=BD=93=E7=BC=96=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index aa5ebc1..a9267c4 100644 --- a/index.js +++ b/index.js @@ -29,7 +29,7 @@ if (options.enable !== false) { hexo.extend.filter.register('after_post_render', data => { if (!options.inject && data['no-emoji']) { return data } - const $ = cheerio.load(data.content) + const $ = cheerio.load(data.content, {decodeEntities: false}) if (options.inject) { $('body').append(`