mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 18:33:50 +02:00
LRF Output: Fix " entities in attribute values causing problems
This commit is contained in:
parent
d2292a759d
commit
7089c66a98
1 changed files with 1 additions and 1 deletions
|
|
@ -104,7 +104,7 @@ class HTMLConverter(object):
|
|||
|
||||
# Replace entities
|
||||
(re.compile(ur'&(\S+?);'), partial(entity_to_unicode,
|
||||
exceptions=['lt', 'gt', 'amp'])),
|
||||
exceptions=['lt', 'gt', 'amp', 'quot'])),
|
||||
# Remove comments from within style tags as they can mess up BeatifulSoup
|
||||
(re.compile(r'(<style.*?</style>)', re.IGNORECASE|re.DOTALL),
|
||||
strip_style_comments),
|
||||
|
|
|
|||
Loading…
Reference in a new issue