blog/rss.xml escapes HTML
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user