Strip html tags from a string

stripHtml('<p>Hello, world!</p>') // 'Hello, world!'
  • Parameters

    • string: string

      string to strip tags from

    Returns string

    string without html tags