How to use the telegraph.utils.HtmlToNodesParser function in telegraph

To help you get started, we’ve selected a few telegraph examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github python273 / telegraph / telegraph / utils.py View on Github external
def html_to_nodes(html_content):
    parser = HtmlToNodesParser()
    parser.feed(html_content)

    nodes = parser.get_nodes()
    nodes, _ = clear_whitespace_nodes(nodes)
    return nodes