Specifying special characters in the text Property

Source: Internet
Author: User
Specifying special characters in the text Property

The following rules specify how to include special characters inTextProperty of a text control mxml tag, either in a property assignment, suchTEXT = "the text", Or in the body of<Mx: Text>Subtag.

In standard text

The following rules determine how you use special characters if you do not use a CDATA section:

  • to use the special characters left angle bracket (<), right angle bracket (>), and ampersand (&), insert the XML character entity equivalents of & lt;, & gt; , and & amp ;, respectively. you can also use & quot; and & apos; for double-quotation marks (") and single-quotation marks ('), and you can use numeric character references, such as & #165 For the yen mark (¥) . do not use any other named character entities; flex treats them as literal text.
  • you cannot use the character that encloses the property text string inside the string. if you surround the string in double-quotation marks ("), use the escape sequence \" for any double-quotation marks in the string. if you surround the string in single-quotation marks (') use the escape sequence \' for any single-quotation marks in the string. you can use single-quotation marks inside a string that is surrounded in double-quotation marks, and double-quotation marks inside a string that is surrounded in single-quotation marks.
  • flex text controls ignore escape characters such as \ t or \ n in the text property. they ignore or convert to spaces, tabs and line breaks, depending on whether you are specifying a property assignment or an subtag. to include line breaks, put the text in a CDATA section. in the text Control text = " string " attribute specifications, you can also specify them as numeric character entities, such as & #013; for a return character or & #009; for a Tab character, but you cannot do this in an subtag.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.