forked from LiveCarta/BookConverter
update tests on pages: course, profile, login, history
This commit is contained in:
@@ -280,7 +280,7 @@ class HTMLPreprocessor:
|
|||||||
a_tags_with_href = self.body_tag.find_all('a', {'href': re.compile('^(?!#sdfootnote)')})
|
a_tags_with_href = self.body_tag.find_all('a', {'href': re.compile('^(?!#sdfootnote)')})
|
||||||
for tag in a_tags_with_href:
|
for tag in a_tags_with_href:
|
||||||
tag.string = tag.text.replace('\u200c', '')
|
tag.string = tag.text.replace('\u200c', '')
|
||||||
tag.string = tag.text.replace('\u200b', '')
|
tag.string = tag.text.replace('\u200b', '') # zero-width-space
|
||||||
tag['href'] = tag.attrs.get('href').replace('%E2%80%8C', '')
|
tag['href'] = tag.attrs.get('href').replace('%E2%80%8C', '')
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
|||||||
Reference in New Issue
Block a user