From b9b9ed42506a600ece8c277e04ebd0a371a4cf47 Mon Sep 17 00:00:00 2001 From: Core Date: Fri, 12 Apr 2019 14:06:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BA=86=E5=9C=A8=E4=B8=BB?= =?UTF-8?q?=E9=A1=B5=E4=B8=8A=E7=9A=84emoji=E5=AD=97=E6=AE=B5=E4=B8=8D?= =?UTF-8?q?=E8=83=BD=E8=A2=AB=E6=AD=A3=E7=A1=AE=E7=9A=84=E6=9B=BF=E6=8D=A2?= =?UTF-8?q?=E4=B8=BAemoji=E8=A1=A8=E6=83=85=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/index.js b/index.js index a9267c4..1367cac 100644 --- a/index.js +++ b/index.js @@ -30,6 +30,7 @@ if (options.enable !== false) { if (!options.inject && data['no-emoji']) { return data } const $ = cheerio.load(data.content, {decodeEntities: false}) + const excerpt = cheerio.load(data.excerpt,{decodeEntities: false}) if (options.inject) { $('body').append(`