Skip to content

v1.0.7

Compare
Choose a tag to compare
@codefine codefine released this 23 Nov 09:46
· 130 commits to master since this release

服务于local_search功能的 search.xml 文件中,一旦出现 \x08\u0008 非法字符,就会导致搜索功能失效。

已用如下代码进行过滤修复。

hexo.extend.filter.register('before_post_render', data => {
    //删除xml的非法字符\x08
    data.content = data.content.replace(/\x08/g, "");
    return data;
}