PRELIMINARY INFORMATION - SUBJECT TO CHANGE
Cleans html markup according to doc type settings and optionally webrichtlijnen.

Syntax

Smartsite SXML CopyCode image Copy Code
string standardscompliance.cleanhtml(string html, enum docType, enum scope, boolean webRichtlijnen)

Parameters

Name Data Type Description
html String The html document to tidy.
docType Enum The doc type to use.
Enum values:
  • Html401Frameset
    Html 4.01 Frameset
  • Html401Strict
    Html 4.01 Strict
  • Html401Transitional
    Html 4.01 Transitional
  • Ignore
    Ignore doc type
  • XHtml10Frameset
    Xhtml 1.0 Frameset
  • XHtml10Strict
    Xhtml 1.0 Strict
  • XHtml10Transitional
    Xhtml 1.0 Transitional
scope Enum The part of the document ot be returned.
Enum values:
  • InnerBody
    Inner xml of the body element
  • InnerDocument
    Inner xml of the document element
  • OuterBody
    Outer xml of the body element
  • OuterDocument
    Complete document
webRichtlijnen Boolean Attempt to conform to 'webrichtlijnen'.

Return Value

Data Type Description
String Cleaned up html.