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. --- include/libweb/html.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/libweb/html.h b/include/libweb/html.h index e62575e..37be86e 100644 --- a/include/libweb/html.h +++ b/include/libweb/html.h @@ -5,6 +5,7 @@ struct html_node *html_node_alloc(const char *element); void html_node_free(struct html_node *n); +char *html_encode(const char *s); int html_node_set_value(struct html_node *n, const char *val); int html_node_set_value_unescaped(struct html_node *n, const char *val); int html_node_add_attr(struct html_node *n, const char *attr, const char *val); -- cgit v1.2.3