mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2025-03-14 01:23:21 -06:00
11 lines
218 B
Python
11 lines
218 B
Python
|
from html.parser import HTMLParser
|
||
|
|
||
|
class HTMLFilter(HTMLParser):
|
||
|
text = ""
|
||
|
def handle_data(self, data):
|
||
|
self.text += data
|
||
|
|
||
|
def html_filter(data):
|
||
|
f = HTMLFilter()
|
||
|
f.feed(data)
|
||
|
return f.text
|