ChemPal Documentation - v0.0.0
    Preparing search index...

    Function formatFromHtml

    • Formats HTML into a readable plain text string, handling paragraphs, lists, and links.

      Parameters

      • html: string

        The HTML string to format

      Returns string

      The formatted plain text string

      formatFromHtml("<ul><li>Item 1</li><li>Item 2</li></ul>") // Returns "- Item 1\n- Item 2"