Last updated 2 years ago
Was this helpful?
The XmlAttributeEncode() function encodes the given text such that is can safely be used inside an XML attribute.
XmlAttributeEncode()
text
This function is NOT SQL compatible. For more information about SQL compatibility, see our .
Returns a text that can safely be used inside an XML attributel. Returns Invalid expression if the parameter is not a text.
Invalid expression
XmlAttributeEncode(
)
XmlAttributeEncode("\"Line 1\"\n'Line 2'") => "Line 1" 'Line 2'
XmlAttributeEncode("\"Line 1\"\n'Line 2'")
a text that is used as an XML attribute