View Single Post
Old 09-25-2017, 06:43 PM   #1
julio:map
Member
julio:map began at the beginning.
 
Posts: 23
Karma: 12
Join Date: Jul 2011
Device: Cool-er
Preventing calibre from processing HTML escape sequences

I don't know if this is the same question as "Preventing Calibre from rewriting custom HTML in recipe?"...

... But I find out that every time that my source text (HTML) has an escape sequence with for example "&lt;" or "&gt;" it gets processed as if it was a "<" or ">"

So the "sample" HTML text that I can see in my source page when viewed through a browser as HTML text, gets deleted and unreadable.

Can I avoid this with any kind of substitution?

I've tried solutions as:
preprocess_regexps = [('&lt;','(')]
...which at least would make my text readable, substituting the "<" with a "(" but failed.

Is there an easy solution?

Thanks.
julio:map is offline   Reply With Quote