mirror of
https://github.com/rembo10/headphones.git
synced 2026-04-05 12:39:26 +01:00
BeautifulSoup needs lxml or html5, have included html5lib. Also latest BeautifulSoup 4.1.3
9 lines
267 B
Python
9 lines
267 B
Python
import _base
|
|
from html5lib.sanitizer import HTMLSanitizerMixin
|
|
|
|
class Filter(_base.Filter, HTMLSanitizerMixin):
|
|
def __iter__(self):
|
|
for token in _base.Filter.__iter__(self):
|
|
token = self.sanitize_token(token)
|
|
if token: yield token
|