Property

Method

Event

Enterprise

 

CleanupHTML

Cleans up the HTML source code with the current options on HTML CleanUp and returns the result .

Syntax

    HRESULT CleanupHTML(
    BSTR html,
    BSTR *converted
    );

Parameters

html

[in] HTML source to be cleaned up

converted

[out, retval] The result of the cleanup

Return Values

0

HTML Clean-up was successful (Default)

1

HTML Clean-up failed

Remarks

    When submitting the created HTML document, Web Editor Control sets the options for tag cleanup and actually cleans up the HTML tags using CleanupHTML.

Samples

VBScript

dim object
set object = Document.editForm
'Options for HTML cleanup. Multiple options can be specified using the | mark to between options.
object.wec.CleanupOptions = "msword2000 | empty |
redundant_nested | specific : p"  
'HTML tags cleanup begins.
object.textbox.value=object.wec.CleanupHtml(object.wec.Value)

See Also

CleanupOptions