Tweakr
    Preparing search index...

    Function stripHtml

    • Removes HTML tags from a string.

      Parameters

      • str: string

        The input string containing HTML.

      Returns string

      A new string with all HTML tags removed.

      1.1.0

      stripHtml("<p>Hello <strong>world</strong>!</p>"); // "Hello world!"
      stripHtml("<a href='#'>Link</a>"); // "Link"