Support inline SVGs (don't break on title in inline SVG).

This commit is contained in:
Stuart Axon 2019-10-11 00:29:00 +01:00
commit eaccca52dd
5 changed files with 30 additions and 1 deletions

View file

@ -407,7 +407,7 @@ class HTMLReader(BaseReader):
if self._in_head:
self._in_head = False
self._in_top_level = True
elif tag == 'title':
elif self._in_head and tag == 'title':
self._in_title = False
self.metadata['title'] = self._data_buffer
elif tag == 'body':