htmlToTxt()

This function renders HTML content into plain text by removing all HTML tags.


Bash
htmlToTxt(text) #Output: Text


Examples

Parser expression

Description

Bash
htmlToTxt("<p>Hello <b>world</b>!</p>")

This example returns:

Hello world!

Bash
htmlToTxt("<ul><li>Item 1</li><li>Item 2</li></ul>")

This example returns:

  • Item 1

  • Item 2

Additional information

Parameters used in this function

Parameter

Input (data type)

Description

text

text

Any given text. Might contain HTML.

Output

This function returns a text


📚 Use cases and examples