加入decodeEntities: false字段,确保cheerio返回非html实体编码
This commit is contained in:
parent
975a3244d3
commit
679a118687
1 changed files with 1 additions and 1 deletions
2
index.js
2
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(`<script>
|
||||
|
|
Loading…
Reference in a new issue