ConvertHtmlToPlainText (open)
Convert a HTML blob to plain text
Syntax
LOADLIB "wh::filetypes/html.whlib";
BLOB FUNCTION ConvertHtmlToPlainText(BLOB htmldoc, RECORD options)Parameters
BLOB htmldocDocument to convert
RECORD optionsConversion options
encodingEncoding for the HTML document (leave empty for autodetect)
imagehandlingImage handling (0=convert to ALT tag. 1=convert to Witty-safe alttags)
linkresolverMacro ptr to hyperlink resolver object (needed for figuring out if witty links should be escaped)
suppress_urlsSet to TRUE to prevent hyperlink url's from being printed
unix_newlinesSet to TRUE us use \n instead of \r\n as newlines
Return value
BLOBThe plain text document