'
- output_rss '
-'
+ output_rss ''
}
html_entry() {
@@ -37,11 +36,18 @@ html_entry() {
}
rss_entry() {
- output_rss "
+ # The content is the output minus the first line
+ # (which would otherwise be a redundant title in most rss readers)
+ # and with escaped html.
+ # The sed expression is stolen from https://stackoverflow.com/questions/12873682/12873723#12873723
+ output_rss " $1
$blog_domain$2
- $1
- "
+
+
+ $(tail -n+2 "$2" | sed 's/&/\&/g; s/\</g; s/>/\>/g; s/"/\"/g; s/'"'"'/\'/g')
+
+ "
}
create_entry() {