Displaying Named Character Entities

The last chapter mentioned that WML uses a default character set. Some characters are not included within this character set, however. WML reserves certain characters for coding purposes (these special characters are covered more in the chapters to come). These special characters are known as named character entities. Table 4.3 summarizes these.

Table 4.3. WML’s Named Character Entities
Character Character Name
< Less than
> Greater than
' Apostrophe
" Quote
& Ampersand
$ Dollar sign
- Soft hyphen

To use one of these characters within a card, you must use a special syntax where you want the character to display in your text. Table 4.4 shows the syntax required for reserved characters to display within a WML ...

Get WAP 2.0 Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.