stripHtml( html )
Changes the provided HTML string into a plain text string by converting <br>
, <p>
, and <div>
to line breaks, stripping all other tags, and converting escaped characters into their display values.
Keyword | Type | Description |
---|---|---|
|
Text |
the html text to be "stripped" of tags and converted to plain text. |
Text
striphtml()
will not convert <br>
, <p>
, and <div>
tags to line breaks if they contain additional classes or styles. For example, <div class="test">
or <div style="align:center">
would not be converted to line breaks.
=stripHtml("<p>Click <b>Save</b>.</p>")
returns Click Save.
Feature | Compatibility | Note |
---|---|---|
Portals | Compatible | |
Offline Mobile | Compatible | |
Sync-Time Custom Record Fields | Compatible | Can be used to create a custom record field that only evaluates at sync time. |
Real-Time Custom Record Fields | Incompatible | Custom record fields that evaluate in real time must be configured using one or more Custom Field functions. |
Process Reports | Compatible | |
Process Events | Compatible |
stripHtml() Function