INNER CODE UNIT · Python
strip_tags
lefterisloukas/edgar-crawler · extract_items.py:105
def strip_tags(self, html: str) -> str:
"""
Strip the HTML tags from the string.
This method feeds the HTML to the parser and returns the data without
HTML tags.
Args:
html (str): The HTML string.
Returns:
str: The string without HTML tags.
"""
self.feed(html)
return self.get_data()
class ExtractItems: