strip extra quotes from html using uTidy

Posted by mridang on Stack Overflow See other posts from Stack Overflow or by mridang
Published on 2010-04-27T18:32:37Z Indexed on 2010/04/27 18:33 UTC
Read the original article Hit count: 432

Filed under:
|

Hi,

Could anyone tell me how I could remove extra-quotes from my HTML using uTidy. The malformed HTML tag looks like this:

<th align="left"">
 <input type="submit" style="font-weight: bold;" value="Go">
</th>

I would also like to remove some empty attributes in the HTML that looks like this (notice the alt tag):

<img src="http://static.foobar.org/images/blank.gif" width="1" height="1" alt="" border="0">

Thank you.

© Stack Overflow or respective owner

Related posts about python

Related posts about tidy