Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Recipes

Notices

Reply
 
Thread Tools Search this Thread
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
Old 09-25-2017, 10:56 PM   #2
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,330
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
calibre most definitely does not process &lt; as <
kovidgoyal is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Preventing Calibre from rewriting custom HTML in recipe? simplisity Recipes 8 09-15-2017 01:42 AM
The Less Wrong Sequences Jaime_Astorga Lounge 2 01-31-2011 03:51 AM
Calibre Recipe HTML content differs from raw html of index.html. krunk Calibre 4 09-20-2010 09:48 PM
Finding Sequences Puzzle pdurrant Lounge 12 08-03-2010 04:22 AM
Number Sequences pdurrant Lounge 8 06-11-2010 03:14 PM


All times are GMT -4. The time now is 02:21 AM.


MobileRead.com is a privately owned, operated and funded community.