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

    Function decodeHTMLEntities

    • Decodes HTML entities in a string.

      Parameters

      • text: string

        The string to decode

      Returns string

      The decoded string

      decodeHTMLEntities("&lt;div&gt;Hello &amp; World&lt;/div&gt;") // Returns "<div>Hello & World</div>"
      decodeHTMLEntities("&#39;Hello&#39;") // Returns "'Hello'"