加入decodeEntities: false字段,确保cheerio返回非html实体编码

This commit is contained in:
Core 2019-04-12 14:04:16 +08:00
parent 975a3244d3
commit 679a118687
1 changed files with 1 additions and 1 deletions

View File

@ -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(`<script>