Handle titles containing links
This commit is contained in:
parent
a2f1e29c36
commit
ba8dc04455
@ -89,7 +89,7 @@ fn main() -> Result<()> {
|
|||||||
out.push_str("<ul>\n");
|
out.push_str("<ul>\n");
|
||||||
|
|
||||||
for item in items {
|
for item in items {
|
||||||
out.push_str(&format!("<li><a href=\"{}\">{}</a> {}</li>\n", item.link, item.title, match item.time{
|
out.push_str(&format!("<li><a href=\"{}\">[l]</a> {} {}</li>\n", item.link, item.title, match item.time{
|
||||||
Some(time) => format!("({})", time),
|
Some(time) => format!("({})", time),
|
||||||
None => "".to_string(),
|
None => "".to_string(),
|
||||||
}));
|
}));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user