Quote:
Originally Posted by user_none
If it's part of the HTML itself search and replace will work. Search and replace however does not run over .css files. You could try:
Code:
(?mu)<style>.+</style>
as the search code. This should remove every style tag inline in the HTML.
|
Many thanks user_none.
Yes. It's inline style in the html, xhtml documents.
I've tried putting
Code:
(?mu)<style>.+</style>
in the First Expression in Search Regular Expression and Replacement Text, blank, but I end with all the font declarations in this format:
Quote:
@font-face {
font-family: DotumChe
}
|
It looks like the calibre conversion already strips many of the font attributes, but not the font declarations.
I also tried
Code:
(?mu)<style.+</style>
Note the missing closing tag in the first style occurrence, as in the html files it's declared as
Code:
<style type="text/css">
but same results.