1
0
Fork 0
mirror of https://github.com/kemayo/leech synced 2025-12-14 20:34:50 +01:00

Better xenforo blockquote chrome removal

This commit is contained in:
David Lynch 2020-08-18 13:21:01 -05:00
parent ffc6dccaac
commit 988368bb66

View file

@ -260,7 +260,7 @@ class XenForo(Site):
if "text-decoration: strikethrough" in tag['style']: if "text-decoration: strikethrough" in tag['style']:
tag.wrap(self._new_tag('strike')) tag.wrap(self._new_tag('strike'))
tag.unwrap() tag.unwrap()
for tag in post.find_all(class_='quoteExpand'): for tag in post.select('.quoteExpand, .bbCodeBlock-expandLink, .bbCodeBlock-shrinkLink'):
tag.decompose() tag.decompose()
self._clean_spoilers(post, chapterid) self._clean_spoilers(post, chapterid)
return post.prettify() return post.prettify()