Quantcast
Channel: htmlagilitypack Forum Rss Feed
Viewing all articles
Browse latest Browse all 655

New Post: Attribute Value quotation correction

$
0
0

I notice with the HAP, that it doesn't seem to correct quotations if you do something like say...

 

<table id="Table" align="center" cellpadding="0" cellspacing="0" width="630px"
                            class="default" style="background: white>

You'll notice that the last quote is missing.

Is there a setting to have it correct things like this? 

I myself think that it SHOULDN'T fix this stuff.  It's the HTML writer's job to do make sure they give valid information.

However, I'd like to fix the worst case scenarios if possible...

 

 

I thought "maybe I can just have it check for >, and close things out", but that would only work if its the last attribute.

 

and, this also means you can't set text values to something with > in it... which also seems incorrect.

 

 

Any ideas?

 

I am OK with an answer such as "no, you can't correct quotes, tell people to lrn2html".

 


Viewing all articles
Browse latest Browse all 655

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>