Question

How can we write html tidy coding only for inserting closing tag in the html file where closing tags are missing ?

I am parsing html tabular information using Html Agilitiy Pack. But where the ending tags are missing extracting information with html agility pack are not performed well. And if we write the ending tags manually and then we can extract the information perfectly with html agility pack.So I want to insert the closing tags where they are missing so html agility pack extracts the information perfectly.

OTHER TIPS

tidy --hide-endtags=false

Looks like you need some Regex here.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top