Skip to content

Commit

Permalink
fix(okla): Fix cleanup content script
Browse files Browse the repository at this point in the history
  • Loading branch information
flooie committed Oct 22, 2024
1 parent 35d2c92 commit 60abaf3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion juriscraper/opinions/united_states/state/okla.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def cleanup_content(content):
:param content: The scraped HTML
:return: Cleaner HTML
"""
tree = strip_bad_html_tags_insecure(content, remove_scripts=True)
tree = strip_bad_html_tags_insecure(str(content), remove_scripts=True)
for removal_class in ["tmp-citationizer", "footer"]:
for element in tree.xpath(f"//div[@class='{removal_class}']"):
parent = element.getparent()
Expand Down

0 comments on commit 60abaf3

Please sign in to comment.