html_ostream class supports output to any destination, in HTML
syntax. Its type is ‘html_ostream_t’. It is a subclass of
It can be instantiated through this function:
Creates an output stream that takes input in the UTF-8 encoding and
writes it in HTML form on
This stream produces a sequence of lines. The caller is responsible for
<body><html> elements before and for closing them
after the use of this stream.
Note: The resulting stream must be closed before
can be closed.
The class adds the following methods:
<span class="classname"> element. The
classname is the name of a CSS class. It can be chosen
arbitrarily and customized through the CSS file.
<span class="classname"> element.
must match properly.
Returns the referred URL of the currently set hyperlink, or
if no hyperlink attribute is currently set.
Note: The returned string is only valid up to the next invocation of
Sets or removes a hyperlink attribute.
To set a hyperlink attribute, pass a non-
ref is an URL; it should be at most 2083 bytes long. Non-ASCII
characters should be URI-escaped (using the %nn syntax).
To remove a hyperlink attribute, pass
NULL for ref.
Hyperlinks don’t nest. That is, a hyperlink attribute is enabled only
up to the next invocation of
This function acts like
ostream_flush (stream, FLUSH_THIS_STREAM),
except that it leaves the destination with the current text style enabled,
instead of with the default text style.
After calling this function, you can output strings without newlines(!) to the
underlying stream, and they will be rendered like strings passed to