Description
Removes the HTML tags from the supplied text.
Syntax
HTML2TEXT ( html_code )
Parameter | Description |
---|---|
html_code | The HTML code from which the function will return the text without the tags. |
Remarks
The HTML2TEXT function returns the text contained in the HTML provided with the markup removed.
Note: | The HTML2TEXT function executes the HTML code to retrieve the text, which may execute JavaScript. This may have security implications if the HTML is not secure. |
Using the HTML2TEXT function may have security implications if the HTML is not secure. To retrieve the text, the HTML2TEXT function executes the HTML code, which may also execute java script.
This function is particularly useful for cases where the source application stores content in HTML format, and you want only the text.
Examples
Suppose that source field S5 contains the value:
<b>MegaTech Software</b>
Use the following function to strip the <b> and <\b> HTML tags and return the text "MegaTech Software":
HTML2TEXT(S5)