Apache NiFi Expression Language guidePDF version

escapeXml

Description: This function prepares the Subject to be inserted into XML document by escaping the characters in a String using XML entities. The function correctly escapes quotes, apostrophe, ampersand, <, > and control-chars.

Subject Type: String

Arguments: No arguments

Return Type: String

Examples: If the "message" attribute is '"bread" & "butter"', then the Expression ${message:escapeXml()} will return '"bread" & "butter"'

We want your opinion

How can we improve this page?

What kind of feedback do you have?