escape strings in feeds
This commit is contained in:
@@ -151,7 +151,11 @@ impl Api {
|
||||
{
|
||||
Ok(Ok(bookmarks)) => {
|
||||
for b in bookmarks {
|
||||
resp.push_str(&format!("<item>\n<title>{}</title>\n<link>{}</link>\n<description>{}</description>\n</item>", b.title, b.url, b.description));
|
||||
resp.push_str(&format!(
|
||||
"<item>\n<title>{}</title>\n<link>{}</link>\n<description>{}</description>\n</item>",
|
||||
xml::escape::escape_str_attribute(&b.title),
|
||||
xml::escape::escape_str_attribute(&b.url),
|
||||
xml::escape::escape_str_attribute(&b.description)));
|
||||
}
|
||||
}
|
||||
Ok(Err(e)) => {
|
||||
|
||||
Reference in New Issue
Block a user