From 94ddbec88e57fe742f219a30145650165887f22c Mon Sep 17 00:00:00 2001 From: Xavier Del Campo Romero Date: Sat, 27 Sep 2025 20:48:55 +0200 Subject: html: Make html_encode public Among other reasons, this function can be useful to sanitize user-generated content before assigning it do a node. --- html.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'html.c') 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; -- cgit v1.2.3