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 is_boolean_attribute(hb_string_T attribute_name);
11bool has_optional_end_tag(hb_string_T tag_name);
12bool should_implicitly_close(hb_string_T open_tag_name, hb_string_T next_tag_name);
13bool parent_closes_element(hb_string_T open_tag_name, hb_string_T parent_close_tag_name);
14
15hb_string_T html_closing_tag_string(hb_string_T tag_name, struct hb_allocator* allocator);
16hb_string_T html_self_closing_tag_string(hb_string_T tag_name, struct hb_allocator* allocator);
17
18#endif
bool has_optional_end_tag(hb_string_T tag_name)
Definition html_util.c:165
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:349
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:323
bool is_void_element(hb_string_T tag_name)
Definition html_util.c:145
bool parent_closes_element(hb_string_T open_tag_name, hb_string_T parent_close_tag_name)
Definition html_util.c:254
bool is_boolean_attribute(hb_string_T attribute_name)
Definition html_util.c:155
bool should_implicitly_close(hb_string_T open_tag_name, hb_string_T next_tag_name)
Definition html_util.c:183