在一个Flex应用程序中,我想显示格式化的鸣叫在火花textarea,但它显示的HTML元素(与标签)“,因为它”而不是解析它,并转换成丰富的HTML文字,我是从以下柔性官方网站HTML动态内容不显示在火花文本区
<s:TextArea width="400" height="100">
<s:content>This is <s:span color="#FF0000">HTML text</s:span>
in an <s:span fontWeight="bold">Spark TextArea control</s:span>.
Use the <s:span textDecoration="underline">content</s:span> property
of the <s:span color="#008800">Spark TextArea control</s:span>
to include basic HTML markup in your text, including
<s:a href="http://www.adobe.com" target="_blank">links</s:a>.
</s:content>
</s:TextArea>
这个例子,但结果通过我的数据是这样
<s:TextArea>
<s:content>{TwitterString.parseTweet(data.text)}</s:content>
</s:TextArea>
和给它的鸣叫是,
<s:a href='http://t.co/a7bQnmLRGy' target='_blank'>http://t.co/a7bQnmLRGy</s:a> I'll be there
这意味着它没有按预期格式化。
任何想法如何使<s:content>
工作的动态内容传递给它?
请没有TextConverter
这个答案将是我最后的手段,我喜欢使用<s:content>
工作