Rich text behavior is attempting to parse certain markup tags in the text as line control characters or instructions for rendering nested text. You can enable rich text behavior for <label> and derived components. For most of these components, the behavior is enabled only if attribute richText="true". For the <textView> component; however, the behavior is enabled by default and attribute richText must be set to false to disable it.
...
...
specifies that the text should appear as
Well hello,
...
...
welcome to a brand new line.
...
...
would appear as it appears here, brackets and all.
Specifying Text
For most label-derived components, text is specified with the text attribute:
...
テキストの指定
ほとんどのラベル派生コンポーネントに対するテキストは、text 属性を使用して指定されます。
<button text="press
...
me"/><textField
...
text="type
...
here"/>
...
...
textArea
...
と textView の場合、テキストは textArea または textView タグ内でネストされたテキストによって指定されます。次に例を示します。
<textView>The textView's text</textView>
いずれの場合も、テキストにリッチテキストタグが含まれているときは特に注意しなければなりません。属性に使用される < および > はエスケープする必要があります。
<button richText="true" text="press <b>me</b>"/
...
Note that the attribute richText is set to true. For textView this attribute is on by default. For all other text labels it should be specified. For example, to put rich text in a textView:
...
>は次のように表示されます。
<p>Paragraph
...
...
...
</textView>
...
textView の場合は、CDATA シンタックスを使用するのが最も簡単です。<
