32#ifndef __NILOREA_HTML_HEADER
33#define __NILOREA_HTML_HEADER
Structure of a generic LIST container.
A box including a string and his lenght.
char * action
action attribute (may be "" for self)
void n_html_links_free(LIST **links)
free a list returned by n_html_extract_links or n_sitemap_extract_urls
LIST * fields
list of N_FORM_FIELD*
LIST * n_html_extract_js_urls(const char *js, size_t len)
extract URL/path tokens from JavaScript source (quoted string literals that look like an http(s) URL,...
LIST * n_sitemap_extract_urls(const char *xml, size_t len)
extract <loc> URLs from a sitemap.xml as a LIST of N_STR*; free with n_html_links_free
LIST * n_html_extract_scripts(const char *html, size_t len)
extract the inline <script> bodies (those without a src attribute) from an HTML document as a LIST of...
char * value
default value attribute, or ""
N_STR * n_html_to_text(const char *html, size_t len)
render HTML to readable plain text: drop tags, skip script/style, decode common entities,...
char * type
field type (lowercased), default "text"
char * name
field name attribute, or ""
void n_html_forms_free(LIST **forms)
free a list returned by n_html_extract_forms
int required
1 when the required attribute is present
char * enctype
lower-case enctype, default "application/x-www-form-urlencoded"
char * method
upper-case method, default "GET"
LIST * n_html_extract_links(const char *html, size_t len)
extract link URLs (a/href, form/action, img/src, script/src, link/href, iframe/src) as a LIST of N_ST...
LIST * n_html_extract_forms(const char *html, size_t len)
extract forms as a LIST of N_HTML_FORM*; free with n_html_forms_free
a single form field (input, select, textarea, button)
a parsed HTML form with its fields
List structures and definitions.
N_STR and string function declaration.