1
0
Fork 0
mirror of https://github.com/kemayo/leech synced 2025-12-06 08:22:56 +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']:
tag.wrap(self._new_tag('strike'))
tag.unwrap()
for tag in post.find_all(class_='quoteExpand'):
for tag in post.select('.quoteExpand, .bbCodeBlock-expandLink, .bbCodeBlock-shrinkLink'):
tag.decompose()
self._clean_spoilers(post, chapterid)
return post.prettify()