coneycode / hexo-generator-baidu-sitemap

Baidu Sitemap generator plugin for Hexo
MIT License
100 stars 21 forks source link

标题里含有 ‘&’ 字符时有 error #15

Closed Cloverii closed 6 years ago

Cloverii commented 7 years ago

如题,我的 baidusitemap.xml 文件在浏览器里打开时显示如下错误

This page contains the following errors:

error on line 167 at column 35: xmlParseEntityRef: no name
Below is a rendering of the page up to the first error.

按照这个链接里的方法把某篇文章标题里的 & 改成 & 就好了,请问可不可以添加上这个字符编码的功能呢?

aeolusheath commented 7 years ago

@coneycode 标题有<>符号 会报错。。生成的xml报 <> 没有结束标签。。

upupming commented 6 years ago

Duplicate of #25

coneycode commented 6 years ago

收到,更新后会通知大家

coneycode commented 6 years ago

done~