LRF Output: Fix " entities in attribute values causing problems

This commit is contained in:
Kovid Goyal 2013-06-24 18:45:05 +05:30
parent d2292a759d
commit 7089c66a98

View File

@ -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),