html__type | string | Contains the format of the current document. |
html | table | The top node of the html document object. |
node | table | The node to convert. |
text | string | The plain text conversion. |
in_str | string |
Input string to convert. |
out_str | string | The converted string. |
source | string/number | May be either a html color name or a color value. |
color | number | The color value or nil if the source was not recognizable as a valid color. If a number it is a valid color value. |
source | string/number | May be either a html color name or a color value. |
name | string | The color value's html name or nil if the source was not recognizable as a valid color. |
source | htmlDoc/string/nil | If a htmlDoc object the document is copied. If a string it may be the raw html document (as loaded from a file) or plain text, which will be parsed. If nil the object is initialized with a blank document. |
doc | htmlDoc | The instantiated document object. |
none |
html | string | The raw html representation of the document. |
none |
plain | string | The plain text representation of the document. |
none |
width | number | The document width value or zero. |
source | htmlDoc/string | The source to interpret. If a htmlDoc object it is returned. If a raw string html document, a new document node is created and returned. |
doc | table/nil | The document node. If source is not a valid html source nil is returned. |
source | htmlDoc/string/nil | If a htmlDoc object the document is copied. If a string it may be the raw html document (as loaded from a file) or plain text. If nil the document object is a blank document. |
none |
source | table/string | The source node to parse. |
def_tag | string/nil | The default tag for the parsed node if source is a table and has no tag key. If nil no default tagging is implemented. |
node | table/string | The parsed node. |
none |
raw | string | The raw text representation of the document. |
node | table | The node to serialize. |
indent | string | The indent string to use for the output string's lines. |
html | string | The raw html representation of the node. |
none |
format | string | The format of the document; either "text" or "html". |