View Single Post
Old 04-02-2014, 02:37 AM   #3
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,424
Karma: 27757236
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Fix HTML uses the HTML 5 algorithm to fix broken HTML. In other words it results in exactly the HTML you would get if you tried to display your broken HTML in a modern web browser. This is the only sane way to implement fix html. It means that the result of doing fix html will look no different than what the original HTML looked in an actual HTML renderer.

If you want to change it using search replace use:

search:
<p.*?>(Chapter\s+\d+.*?)</p>
replace:
<h2>\1</h2>

If all the p tags have the same class you can be more specific in the above expression
kovidgoyal is offline   Reply With Quote