Free cookie consent management tool by TermsFeed

stripHtml() Function

Function

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.

Parameters

Keyword Type Description

html

Text

the html text to be "stripped" of tags and converted to plain text.

Returns

Text

Usage considerations

Handling for classes and styles

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.

Examples

=stripHtml("<p>Click <b>Save</b>.</p>") returns Click Save.

Feature compatibility

The table below lists this function's compatibility with various features in Appian.
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

Feedback