mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2024-11-26 12:53:12 -06:00
Removed code from our html parser
This commit is contained in:
parent
2a10f029f0
commit
f24f97baae
@ -11,8 +11,6 @@ class HTMLFilter(HTMLParser):
|
|||||||
def handle_starttag(self, tag, attrs):
|
def handle_starttag(self, tag, attrs):
|
||||||
if tag == "br":
|
if tag == "br":
|
||||||
self.text = self.text+"\n"
|
self.text = self.text+"\n"
|
||||||
elif tag == "p":
|
|
||||||
self.text = self.text+"\n\n"
|
|
||||||
|
|
||||||
def html_filter(data):
|
def html_filter(data):
|
||||||
f = HTMLFilter()
|
f = HTMLFilter()
|
||||||
|
Loading…
Reference in New Issue
Block a user