mirror of
https://git.joinplu.me/Plume/Plume.git
synced 2024-11-25 21:11:01 +00:00
Escape titles in RSS feeds
This commit is contained in:
parent
f0b911a328
commit
94904fa3d5
1 changed files with 1 additions and 1 deletions
|
@ -80,7 +80,7 @@ impl Page {
|
|||
|
||||
pub fn post_to_atom(post: Post, conn: &Connection) -> Entry {
|
||||
EntryBuilder::default()
|
||||
.title(post.title.clone())
|
||||
.title(format!("<![CDATA[{}]]>", post.title))
|
||||
.content(ContentBuilder::default()
|
||||
.value(format!("<![CDATA[{}]]>", *post.content.get()))
|
||||
.src(post.ap_url.clone())
|
||||
|
|
Loading…
Reference in a new issue