Vipin Maurya
Vipin Maurya

Reputation: 58

How to stop TIDYCom from deleting opening tags that don't have closing tags tags during cleanup

TidyCom removes unclosed tags during cleanup. For example, the <p> tag with missing closing is wiped off when compared with source file.

How can this be retained, instead? Here is my code:

 Dim tid As New TidyObject()

    tid.Options.Doctype = "strict"
    tid.Options.OutputXml = True
    tid.Options.AddXmlDecl = True
    tid.Options.Clean = False
    tid.Options.DropEmptyParas = True
    tid.Options.DropFontTags = False
    tid.Options.CharEncoding = CharEncoding.utf8
    tid.Options.QuoteAmpersand = True
    tid.Options.QuoteMarks = False
    tid.Options.QuoteNbsp = True
    tid.Options.TidyMark = False
    tid.Options.LogicalEmphasis = True
    tid.Options.BreakBeforeBr = False
    tid.Options.FixBackslash = True
    tid.Options.FixBadComments = True
    tid.Options.Wrap = True
    tid.Options.UppercaseAttributes = False
    tid.Options.UppercaseTags = False
    tid.Options.Indent = True
    tid.Options.IndentSpaces = 4
    tid.Options.IndentAttributes = True
    tid.Options.Word2000 = False 

Upvotes: 0

Views: 118

Answers (1)

Mantra
Mantra

Reputation: 346

You can have reference at this link http://w3c.github.io/tidy-html5/quickref.html#drop-empty-paras as you have set it to true, this might be causing problem.

Upvotes: 1

Related Questions