From 94904fa3d55073a364a4bcdcb65b498eb985caf5 Mon Sep 17 00:00:00 2001 From: Baptiste Gelez Date: Tue, 6 Nov 2018 10:49:46 +0100 Subject: [PATCH] Escape titles in RSS feeds --- src/routes/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/mod.rs b/src/routes/mod.rs index b926b36a..180ce184 100644 --- a/src/routes/mod.rs +++ b/src/routes/mod.rs @@ -80,7 +80,7 @@ impl Page { pub fn post_to_atom(post: Post, conn: &Connection) -> Entry { EntryBuilder::default() - .title(post.title.clone()) + .title(format!("", post.title)) .content(ContentBuilder::default() .value(format!("", *post.content.get())) .src(post.ap_url.clone())