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.

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

Was this helpful?