flyingsaucerproject / flyingsaucer

XML/XHTML and CSS 2.1 renderer in pure Java
Other
1.96k stars 549 forks source link

FlyingSaucer can cleanup invalid html #279

Open asolntsev opened 4 months ago

asolntsev commented 4 months ago

FlyingSaucer could be more tolerant to minor errors in html source. Instead of throwing an exception, say, for non-closed html5 tags, it could close them automatically.

For example, we could use JSoup for job.

Triggered in discussion https://github.com/flyingsaucerproject/flyingsaucer/pull/277