diff options
| author | Joe Carstairs <me@joeac.net> | 2026-06-18 19:03:24 +0100 |
|---|---|---|
| committer | Joe Carstairs <me@joeac.net> | 2026-06-18 19:03:24 +0100 |
| commit | e8754afca2033d15c0b7e71447e0767e8705718f (patch) | |
| tree | 356a9259c2cf128f27e5052c9c2e6cdac75d9596 /http/src/blog/rss.uppxml | |
| parent | c179adccb27badc2055cefd80a8863ffb0d1b478 (diff) | |
blog/rss.xml escapes HTML
Diffstat (limited to 'http/src/blog/rss.uppxml')
| -rw-r--r-- | http/src/blog/rss.uppxml | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/http/src/blog/rss.uppxml b/http/src/blog/rss.uppxml index 93955a9..66683e4 100644 --- a/http/src/blog/rss.uppxml +++ b/http/src/blog/rss.uppxml @@ -29,7 +29,14 @@ DATE_PUBLISHED_RFC_822="$(TZ=UT date --date="${POST_ID}" +"%a, %d %b %Y %H:%M:%S <description>${POST_DESCRIPTION:-${POST_TITLE}}</description> <content:encoded> #! -pp "${SRC}/blog/$post" "${SITE_URL}" +pp "${SRC}/blog/$post" "${SITE_URL}" \ + | sed "s/&/\\&/g" \ + | sed "s/</\\</g" \ + | sed "s/>/\\>/g" \ + | sed "s/\"/\\"/g" \ + | sed "s/'/\\'/g" \ + | sed "s/\`/\\`/g" \ + | sed "s/\\\$/\\\\\$/g" #! </content:encoded> <author>Joe Carstairs</author> |
