aboutsummaryrefslogtreecommitdiff
path: root/html.c
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi92@disroot.org>2025-09-27 20:48:55 +0200
committerXavier Del Campo Romero <xavi92@disroot.org>2025-09-28 00:12:57 +0200
commit94ddbec88e57fe742f219a30145650165887f22c (patch)
treeb605b87b003927eb86cf8d78bae934b06b50ec5a /html.c
parentbdfbd076f2d3e7212f300bf5edbbad1934fae324 (diff)
html: Make html_encode public
Among other reasons, this function can be useful to sanitize user-generated content before assigning it do a node.
Diffstat (limited to 'html.c')
-rw-r--r--html.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/html.c b/html.c
index 094b00c..4af536e 100644
--- a/html.c
+++ b/html.c
@@ -23,7 +23,7 @@ struct html_node
static int serialize_siblings(struct dynstr *, const struct html_node *,
unsigned);
-static char *html_encode(const char *s)
+char *html_encode(const char *s)
{
struct dynstr d;