Skip to main content
Skip table of contents

STRIP_HTML

The STRIP_HTML function is used to remove all HTML for a given JSONPath value.

Usable: Value Fields, Context Filter

Syntax: { STRIP_HTML((PARAM_1)) }

Parameter

Type

Examples

Description

PARAM_1

JSONPath

$.value

$.issue.fields.customfield_X

The JSONPath expression representing the value that should be stripped off HTML

Value Field Example

For example, consider the following data source JSON:

CODE
{
  "value": "<p><b>title</b><br/>subtitle</p>"
}

Use the STRIP_HTML function remove all HTML elements and convert <br> tags into line breaks

CODE
{ STRIP_HTML(($.value)) }

This will result in title\nsubtitle

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.