mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-22 01:16:13 +01:00
Replace entities in all cases.
This commit is contained in:
parent
d5bd948404
commit
6c40b0149e
1 changed files with 3 additions and 0 deletions
|
|
@ -378,6 +378,9 @@ def get_text(self, tag, limit=None):
|
|||
text += c['alt']
|
||||
return text
|
||||
text += self.get_text(c)
|
||||
if text:
|
||||
for rule, sub in self.__class__.ENTITY_RULES:
|
||||
text = rule.sub(sub, text)
|
||||
return text
|
||||
|
||||
def process_links(self, is_root, selfpath, link_level=0):
|
||||
|
|
|
|||
Loading…
Reference in a new issue