standard.lib.xml.htmlSaveFile

htmlSaveFile is available since version 1.0.

Prototype:

number htmlSaveFile(string filename, number cur)

Parameters

filename
the filename (or URL)
cur
the HTML document handle

Description:

Dump an HTML document to a file. If filename is "-" the stdout file is used.

Return value:

Returns the number of byte written or -1 in case of failure.