RewriteHTMLDocumentTo (open)

Smart HTML rewriter

Syntax

LOADLIB "wh::filetypes/html.whlib";

MACRO RewriteHTMLDocumentTo(INTEGER outputid, BLOB htmldoc, RECORD callbacks, STRING encoding)

Parameters

INTEGER outputid

Document destination

BLOB htmldoc

HTML Document to rewrite

RECORD callbacks

Record with situation specific callbacks

globallinkrewrite

Global link rewriter (both images and hyperlinks)

hyperlinkurlrewrite

Hyperlink source rewriter

imageurlrewrite

Image source rewriter

STRING encoding

Optional parameter specifying encoding. Defaults to "".