aboutsummaryrefslogtreecommitdiff
path: root/src/Utils.py
diff options
context:
space:
mode:
authorGravatar jesopo2018-09-26 14:36:33 +0100
committerGravatar jesopo2018-09-26 14:36:33 +0100
commit8d946fb60ba0ce641cc870ab35ba4115b34fe70e (patch)
tree208ca59fc7b436ab8c61d75d7d2fcad3e59b56ac /src/Utils.py
parentComment config options! (diff)
signature
Add !suggest, to get suggested searches from google
Diffstat (limited to 'src/Utils.py')
-rw-r--r--src/Utils.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Utils.py b/src/Utils.py
index cd0e0cfa..e78c08fc 100644
--- a/src/Utils.py
+++ b/src/Utils.py
@@ -285,3 +285,6 @@ def hook(event, **kwargs):
{"event": event, "kwargs": kwargs})
return func
return _hook_func
+
+def strip_html(s):
+ return bs4.BeautifulSoup(s, "lxml").get_text()