XmlAttributeEncode

The XmlAttributeEncode() function encodes the given text such that is can safely be used inside an XML attribute.

This function is NOT SQL compatible. For more information about SQL compatibility, see our documentation.

Returns a text that can safely be used inside an XML attributel. Returns Invalid expression if the parameter is not a text.

Syntax

XmlAttributeEncode(text)

XmlAttributeEncode("\"Line 1\"\n'Line 2'") => "Line 1" 'Line 2'

Parameters

Name
Type
Required
Description

text

text

☑️

a text that is used as an XML attribute

Last updated