mirror of
https://github.com/searxng/searxng.git
synced 2025-07-12 15:59:21 +02:00
A bit of utils unit tests
This commit is contained in:
parent
4dba3739fb
commit
cfe81d741c
2 changed files with 23 additions and 1 deletions
|
@ -115,7 +115,7 @@ class HTMLTextExtractor(HTMLParser):
|
|||
self.result.append(name)
|
||||
|
||||
def get_text(self):
|
||||
return u''.join(self.result)
|
||||
return u''.join(self.result).strip()
|
||||
|
||||
|
||||
def html_to_text(html):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue