共用方式為


Escape Element

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

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>

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

Field

Occurrences

Minimum: 0

Maximum: 1

Example

The following example evaluates to "abc\xyz".

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