View Single Post
Old 04-29-2015, 03:28 AM   #10
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,423
Karma: 27757236
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
@rkomar: It is not possible for unstructured XML. However, the HTML 5 parsing algorithm, which is the standard algorithm browsers use to parse "tag soup" has various well defined rules for closing mismatched tags that cover most of these. calibre uses this algorithm to autofix html when you ask it too, and I believe Sigil will start doing so in the future as well.

Last edited by kovidgoyal; 04-29-2015 at 03:33 AM.
kovidgoyal is offline   Reply With Quote