Escape element

Applies to: SharePoint 2016 | SharePoint Foundation 2013 | SharePoint Online | SharePoint Server 2013

In vCard support, escapes certain characters in strings. The Escape element can be used to replace every occurrence of a character in the string.

<Escape
  EscapeChar = "Text"
  EscapeChars = "Text">
</Escape>

Elements and attributes

The following sections describe attributes, child elements, and parent elements.

Attributes

Attribute Description
EscapeChar
Required String. The character used to escape a particular character in the string.
EscapeChars
Required String. The character in the string that is to be escaped.

Child elements

None

Parent elements

Occurrences

  • Minimum: 0
  • Maximum: 1

Example

The following example evaluates to "abc\xyz".

<Escape EscapeChar="\" EscapeChars="x">abcxyz</Escape>