HtmlRewriterContext (open)
Syntax
LOADLIB "wh::filetypes/html.whlib";
OBJECTTYPE HtmlRewriterContext
Constructor
Functions
- MACRO AddLinkAttribute(STRING tagname, STRING attributename)
- MACRO ApplyCSSInline(BLOB css, OBJECT refnode, BOOLEAN destructive)
- MACRO CleanupHTML(OBJECT startingnode, RECORD options)
Rewrite a HTML document
- BLOB FUNCTION GenerateHTML(OBJECT startnode, OBJECT do_not_use)
Output the specified DOM document as HTML
- STRING ARRAY FUNCTION ListEmbeddedInstanceIds(OBJECT startnode)
Returns all references of embedded objects
- STRING ARRAY FUNCTION ListEmbeddedLinks(OBJECT startnode)
List all embedded links in a document
- MACRO PrintHTMLTo(INTEGER outdoc, OBJECT startnode)
Print the specified DOM document as HTML
- MACRO RewriteAllLinks(OBJECT startnode, FUNCTION PTR rewriter)
- MACRO RewriteEmbeddedLinks(OBJECT startnode, FUNCTION PTR rewriter, RECORD options)
- MACRO RewriteLinks(OBJECT startnode, FUNCTION PTR rewriter, RECORD options)
- MACRO RewriteLinksToRelative(STRING baseurl, STRING currenturl, OBJECT node)
- MACRO TrimWhitespaceEnd(OBJECT startingnode)
- MACRO TrimWhitespaceStart(OBJECT startingnode)