From 0bc77c8c0dbc1737e2909ff5a2d5e5af48b298f7 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Tue, 24 Nov 2020 22:28:40 +0100 Subject: Started HTML rendering --- libtxt/inc/html.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'libtxt/inc/html.h') diff --git a/libtxt/inc/html.h b/libtxt/inc/html.h index dd2b59f..4eaca0b 100644 --- a/libtxt/inc/html.h +++ b/libtxt/inc/html.h @@ -4,6 +4,16 @@ #ifndef HTML_H #define HTML_H -int html_self_closing(const char *tag); +#include +#include + +struct dom { + char *tag; + char *content; + struct dom *parent; + struct list *children; +}; + +int html_render(struct element *container, char *data, u32 length); #endif -- cgit v1.2.3