Strip_HTML_tags
  • 19 May 2022
  • 1 Minute to read
  • Dark
    Light
  • PDF

Strip_HTML_tags

  • Dark
    Light
  • PDF

Returns the given text wih all HTML tags stripped away.

Function signature

STRIP_HTML_TAGS(html: String, preservenewlines: Boolean) => String
Parameter Description
HTML HTML to operate
Preserve Newlines If preserveNewlines is true, replace <br> with \n

Examples

html = "<div class=\"test\"><span >123<br/>456</span ></div>"
Formula Return value
STRIP_HTML_TAGS(html) 123456
STRIP_HTML_TAGS(html, true) 123\n456

Was this article helpful?

What's Next