Is there a way to check if a tag is a self-closing tag with HTMLparser?
I know self-closing tags are handled by the built-in function: handle_startendtag()
However, it only handles them if they are explicitely closed..eg <img src="x.jpg"/>
and not: <img src="x.jpg">
I am making a program that takes an html file and spits out a sass template.
I want to close these img tags in the output file that are not explicitly closed in the html file.
Cheers