diff options
author | Jay Lau <cappyclear@gmail.com> | 2020-12-06 09:04:32 +0300 |
---|---|---|
committer | Jay Lau <cappyclear@gmail.com> | 2020-12-06 09:04:32 +0300 |
commit | a20bd97fc91447e8abd40561f25756a4ed9c978b (patch) | |
tree | 85e7f513d55c9f6a25e8d0047d8c0926904e8d7e | |
parent | 659c14f66b7b2a3748f065f0d202f531b4e2a5a5 (diff) |
add invisible char filter
-rw-r--r-- | layouts/_default/rss.xml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/_default/rss.xml b/layouts/_default/rss.xml index 16df322..abe5a11 100644 --- a/layouts/_default/rss.xml +++ b/layouts/_default/rss.xml @@ -23,7 +23,7 @@ <pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate> {{ with .Site.Author.email }}<author>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</author>{{end}} <guid>{{ .Permalink }}</guid> - <description>{{ .Content | html }}</description> + <description>{{ .Content | replaceRE `[^\f\t\n\r\v\123\x7F\x{10FFFF}\\\^\$\.\*\+\?\{\}\(\)\[\]\|]` "$1" | html}}</description> </item> {{ end }} </channel> |