Herb C Reference
Loading...
Searching...
No Matches
html_util.h
Go to the documentation of this file.
1#ifndef HERB_HTML_UTIL_H
2#define HERB_HTML_UTIL_H
3
4#include "util/hb_string.h"
5#include <stdbool.h>
6
7struct hb_allocator;
8
9bool is_void_element(hb_string_T tag_name);
10bool has_optional_end_tag(hb_string_T tag_name);
11bool should_implicitly_close(hb_string_T open_tag_name, hb_string_T next_tag_name);
12bool parent_closes_element(hb_string_T open_tag_name, hb_string_T parent_close_tag_name);
13
14hb_string_T html_closing_tag_string(hb_string_T tag_name, struct hb_allocator* allocator);
15hb_string_T html_self_closing_tag_string(hb_string_T tag_name, struct hb_allocator* allocator);
16
17#endif
bool has_optional_end_tag(hb_string_T tag_name)
Definition html_util.c:115
hb_string_T html_self_closing_tag_string(hb_string_T tag_name, struct hb_allocator *allocator)
Creates a self-closing HTML tag string like "<tag_name />".
Definition html_util.c:299
hb_string_T html_closing_tag_string(hb_string_T tag_name, struct hb_allocator *allocator)
Creates a closing HTML tag string like "</tag_name>".
Definition html_util.c:273
bool is_void_element(hb_string_T tag_name)
Definition html_util.c:105
bool parent_closes_element(hb_string_T open_tag_name, hb_string_T parent_close_tag_name)
Definition html_util.c:204
bool should_implicitly_close(hb_string_T open_tag_name, hb_string_T next_tag_name)
Definition html_util.c:133