Couple questions about Html Agility Pack - Sanitize Html

Topics: Developer Forum, Project Management Forum, User Forum
Sep 4, 2012 at 10:00 PM
Edited Sep 4, 2012 at 10:03 PM

Hi folks!

I have couple questions, hope you all help me.

1)Html Agility Pack closed all unclosed tags, can i'm change this behaviour?

i mean:

 

<someTag class="qwerty">
  <b class="someClass">
      <b class="someClass"> 
      </b>
  </b>

Will be closed at the end and we will get:
<someTag class="qwerty">
  <b class="someClass">
      <b class="someClass"> 
      </b>
  </b>
</someTag>

Can Html Agility Pack close tag in same line? Like this:
<someTag class="qwerty"></someTag>
  <b class="someClass">
      <b class="someClass"> 
      </b>
  </b>

When i'm remove elements(tags) remain empty spaces, how can i solve do not leave blanks? Thanks.