Skip to content

自动生成的description存在HTML标签 #238

@yqs112358

Description

@yqs112358

Check List

  • I have already read README.
  • I have already searched existing issues and they are not help to me.
  • I examined error or warning messages and it's difficult to solve.
  • I am using the latest version of this repository.
  • I am using the latest version of Hexo.
  • My Node.js is matched the required version.

Describe the bug

如下列rss.xml,可以看到文章的description中包含了本不该包含的标签
https://blog.openyq.top/rss.xml

Image

Expected behavior

description中只包含纯文本内容

How to reproduce

  1. 安装hexo-generator-feed
  2. 部署博客

Screenshots

Image

Environment information

- Hexo 7.3.0
- hexo-generator-feed 3.0.0

Additional context

_config.yaml相关配置:

# hexo-generate-feed (RSS)
feed:
  enable: true
  type:
    - atom
    - rss2
  path:
    - atom.xml
    - rss.xml
  limit: 0
  hub:
  content:
  content_limit: 140
  content_limit_delim: ' '
  order_by: -date
  icon: 
  autodiscovery: true
  template:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions