Platforms to show: All Mac Windows Linux Cross-Platform

Back to TidyDocumentMBS class.

TidyDocumentMBS.LibraryVersion as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Tidy MBS Tools Plugin 17.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The version number of the library.

TidyDocumentMBS.OptionNames as String()

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Tidy MBS Tools Plugin 24.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Queries list of available options.

List of options in current version:

  • accessibility-check
  • alt-text
  • anchor-as-name
  • ascii-chars
  • new-blocklevel-tags
  • show-body-only
  • break-before-br
  • char-encoding
  • coerce-endtags
  • css-prefix
  • new-custom-tags
  • decorate-inferred-ul
  • doctype
  • doctype-mode
  • drop-empty-elements
  • drop-empty-paras
  • drop-proprietary-attributes
  • repeated-attributes
  • gnu-emacs
  • gnu-emacs-file
  • new-empty-tags
  • enclose-block-text
  • enclose-text
  • error-file
  • escape-cdata
  • escape-scripts
  • fix-backslash
  • fix-bad-comments
  • fix-uri
  • force-output
  • gdoc
  • hide-comments
  • output-html
  • input-encoding
  • indent-attributes
  • indent-cdata
  • indent
  • indent-spaces
  • new-inline-tags
  • join-classes
  • join-styles
  • keep-time
  • keep-tabs
  • literal-attributes
  • logical-emphasis
  • lower-literals
  • bare
  • clean
  • tidy-mark
  • merge-divs
  • merge-emphasis
  • merge-spans
  • add-meta-charset
  • mute
  • mute-id
  • ncr
  • newline
  • numeric-entities
  • omit-optional-tags
  • output-encoding
  • output-file
  • output-bom
  • indent-with-tabs
  • preserve-entities
  • new-pre-tags
  • priority-attributes
  • punctuation-wrap
  • quiet
  • quote-ampersand
  • quote-marks
  • quote-nbsp
  • replace-color
  • show-errors
  • show-filename
  • show-info
  • markup
  • show-meta-change
  • show-warnings
  • skip-nested
  • sort-attributes
  • strict-tags-attributes
  • fix-style-tags
  • tab-size
  • uppercase-attributes
  • uppercase-tags
  • custom-tags
  • vertical-space
  • warn-proprietary-attributes
  • word-2000
  • wrap-asp
  • wrap-attributes
  • wrap-jste
  • wrap
  • wrap-php
  • wrap-script-literals
  • wrap-sections
  • write-back
  • output-xhtml
  • add-xml-decl
  • output-xml
  • assume-xml-procins
  • add-xml-space
  • input-xml

TidyDocumentMBS.ReleaseDate as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Tidy MBS Tools Plugin 5.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Get release date (version) for current library.

TidyDocumentMBS.Tidy(Input as string, byref Output as String, byref ErrorLog as String, options as Dictionary) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Tidy MBS Tools Plugin 24.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Runs tidy with options on the given input.
Example
Var html As String = "<title>Test"

Var optionNames() As String = TidyDocumentMBS.OptionNames
Var optionNamesText As String = Join(optionNames, EndOfLine)

Var errorLog As String
Var output As String
Var options As New Dictionary

// output as xhtml
'options.Value("output-xhtml") = True

// if you want xml instead of html:
options.Value("output-xml") = True
options.Value("input-xml") = True

Var r As Integer = TidyDocumentMBS.tidy(html, output, errorLog, options)

Break

By default we apply options to use utf-8 for input and output as encoding and we disable the tidy mark for the html header.
Returns error code, zero for success. Negative values are error codes.

The items on this page are in the following plugins: MBS Tools Plugin.


The biggest plugin in space...