The HTML subsystem

Html is a library of good-to-have helper functions.

Functions:

int html_href(int fd, const char *href, const char *text)
Outputs an HTML HREF tag pointing to href, and showing the string text. The string are quoted with the html_strquote() function before being written.

int html_email(int fd, const char *address)
Outputs the string address as valid Email HTML HREF tag. The address is quoted with html_strquote

char *html_strquote(const char *str, char *buf, int size)
Quote a string to be able to display certain special characters. The characters quoted are:
	"	-> 	"
	&	-> 	&
	<	->	&lp;
	>	->	&gt;

void html_sysheader(int fd, const char *htype, const char *format, ...)
Outputs a standardized HTML header.

void html_sysfooter(int fd)
Outputs a standardized HTML footer.

void html_error(int fd, const char *type, const char *format, va_list ap)
Display a standardized error message.