Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def clean_html(raw_html):
- """
- Formatting our String excluding all html-tags making it easier to read our description
- :param raw_html:
- :return:
- """
- logging.info("Cleaning something from htlm-tags.")
- cleaner = re.compile('<.*?>')
- clean_text = re.sub(cleaner, '', raw_html)
- logging.info("Cleaned from html-tags!")
- return clean_text
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement