Spaces:
Runtime error
Runtime error
philipp-zettl
commited on
Commit
•
5362638
1
Parent(s):
db59f68
Update src/text.py
Browse files- src/text.py +1 -1
src/text.py
CHANGED
@@ -80,7 +80,7 @@ def select_content(html_code, elem_class, class_name):
|
|
80 |
kwargs = {'class_': class_name}
|
81 |
elif class_name.startswith('#'):
|
82 |
kwargs = {'id': class_name[1:]}
|
83 |
-
return md(str(BS(
|
84 |
|
85 |
|
86 |
def split_by_heading(html_content, _i):
|
|
|
80 |
kwargs = {'class_': class_name}
|
81 |
elif class_name.startswith('#'):
|
82 |
kwargs = {'id': class_name[1:]}
|
83 |
+
return md(str(BS(html_code, features="lxml").find(**kwargs)))
|
84 |
|
85 |
|
86 |
def split_by_heading(html_content, _i):
|