mazey
    Preparing search index...

    Function removeHTML

    • Remove HTML tags from a string, and optionally newline characters.

      Usage:

      import { removeHTML } from "mazey";

      const ret = removeHTML("<div>hello world</div>");
      console.log(ret);

      Output:

      hello world
      

      Parameters

      • str: string

        A string that may contain HTML tags.

      • options: { removeNewLine?: boolean } = {}

      Returns string

      The string with HTML tags removed.