Platforms to show: All Mac Windows Linux Cross-Platform

Back to TidyDocumentMBS class.

TidyDocumentMBS.SaveConfig(theOutput as TidyOutputMBS) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Tidy MBS Tools Plugin 5.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Save current settings to given output sink.

Only non-default values are written.

TidyDocumentMBS.SaveConfigFile(filename as string) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Tidy MBS Tools Plugin 5.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Save current settings to named file.

Only non-default values are written.

TidyDocumentMBS.SaveFile(filename as string) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Tidy MBS Tools Plugin 5.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Save to named file.

TidyDocumentMBS.SaveOutput(theOutput as TidyOutputMBS) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Tidy MBS Tools Plugin 5.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Save to given generic output.

Some examples using this method:

TidyDocumentMBS.SaveString as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Tidy MBS Tools Plugin 5.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Save to a string.
Example
Var t as new TidyDocumentMBS

call t.ParseString("<p>Hello World</p>") // pass here bad html
call t.CleanAndRepair

Var s As String=t.SaveString
MsgBox s // show fixed html

Returns "" on failure.

The returned string has no encoding set. You need to use DefineEncoding.

Some examples using this method:

TidyDocumentMBS.SetBooleanOption(OptionID as Integer, value as boolean) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Tidy MBS Tools Plugin 5.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Sets an option with a given boolean value.

Returns true on success and false on failure.

TidyDocumentMBS.SetCharacterEncoding(encodingName as string) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Tidy MBS Tools Plugin 5.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Set the input/output character encoding for parsing markup.

Values include: ascii, latin1, raw, utf8, iso2022, mac, win1252, utf16le, utf16be, utf16, big5 and shiftjis. Case in-sensitive.

TidyDocumentMBS.SetErrorFile(filename as string) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Tidy MBS Tools Plugin 5.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Redirects error output to named file.

Returns true on success.

TidyDocumentMBS.SetInputCharacterEncoding(encodingName as string) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Tidy MBS Tools Plugin 5.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Set the input character encoding for parsing markup.
Example
Var t as new TidyDocumentMBS

MsgBox str(t.OptionInCharEncoding)
call t.SetInputCharacterEncoding "utf8"
MsgBox str(t.OptionInCharEncoding)

Values include: ascii, latin1, raw, utf8, iso2022, mac, win1252, utf16le, utf16be, utf16, big5 and shiftjis. Case in-sensitive.

TidyDocumentMBS.SetIntegerOption(OptionID as Integer, value as Integer) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Tidy MBS Tools Plugin 5.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Sets an option with a given integer value.

Returns true on success and false on failure.

TidyDocumentMBS.SetOutputCharacterEncoding(encodingName as string) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Tidy MBS Tools Plugin 5.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Set the output character encoding for parsing markup.

Values include: ascii, latin1, raw, utf8, iso2022, mac, win1252, utf16le, utf16be, utf16, big5 and shiftjis. Case in-sensitive.

TidyDocumentMBS.SetStringOption(OptionID as Integer, value as string) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Tidy MBS Tools Plugin 5.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Sets an option with a given string value.

Returns true on success and false on failure.

TidyDocumentMBS.Status as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Tidy MBS Tools Plugin 5.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Get status of current document.

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


The biggest plugin in space...