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
7bool is_void_element(hb_string_T tag_name);
8bool has_optional_end_tag(hb_string_T tag_name);
9bool should_implicitly_close(hb_string_T open_tag_name, hb_string_T next_tag_name);
10bool parent_closes_element(hb_string_T open_tag_name, hb_string_T parent_close_tag_name);
11
12hb_string_T html_closing_tag_string(hb_string_T tag_name);
13hb_string_T html_self_closing_tag_string(hb_string_T tag_name);
14
15#endif
bool has_optional_end_tag(hb_string_T tag_name)
Definition html_util.c:29
hb_string_T html_closing_tag_string(hb_string_T tag_name)
Creates a closing HTML tag string like "</tag_name>".
Definition html_util.c:209
bool is_void_element(hb_string_T tag_name)
Definition html_util.c:12
bool parent_closes_element(hb_string_T open_tag_name, hb_string_T parent_close_tag_name)
Definition html_util.c:133
hb_string_T html_self_closing_tag_string(hb_string_T tag_name)
Creates a self-closing HTML tag string like "<tag_name />".
Definition html_util.c:235
bool should_implicitly_close(hb_string_T open_tag_name, hb_string_T next_tag_name)
Definition html_util.c:53