public htmlfunction

html(source, [dir])

Write source to HTML format. dir optionally provides the directory to write the final content to. When this directory is not provided then a temporary directory is used.