summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordefault <nobody@localhost>2023-11-29 09:53:49 +0100
committerdefault <nobody@localhost>2023-11-29 09:53:49 +0100
commit6c6dd060ebc27c4841111eebb856222d3bd2864f (patch)
treecf055b09bc2ad13c8b5e4fe9ca4eaf608c3b2550
parenta6da1fdb64f927943c39f664ff6a982a1f082b06 (diff)
The "More..." links in html_timeline() use now xs_html.
-rw-r--r--html.c19
1 files changed, 11 insertions, 8 deletions
diff --git a/html.c b/html.c
index 4768699..cfd64d8 100644
--- a/html.c
+++ b/html.c
@@ -2172,15 +2172,18 @@ xs_str *html_timeline(snac *user, const xs_list *list, int local,
m = xs_fmt("%s?%s", t, ss);
}
- xs *s1 = xs_fmt(
- "<p>"
- "<a href=\"%s\" name=\"snac-more\">%s</a> - "
- "<a href=\"%s\" name=\"snac-more\">%s</a>"
- "</p>\n",
- t, L("Back to top"),
- m, L("More...")
- );
+ xs_html *more_links = xs_html_tag("p",
+ xs_html_tag("a",
+ xs_html_attr("href", t),
+ xs_html_attr("name", "snac-more"),
+ xs_html_text(L("Back to top"))),
+ xs_html_text(" - "),
+ xs_html_tag("a",
+ xs_html_attr("href", m),
+ xs_html_attr("name", "snac-more"),
+ xs_html_text(L("More..."))));
+ xs *s1 = xs_html_render(more_links);
s = xs_str_cat(s, s1);
}