Flex s:文本htmltext缺少/剪切完整的html文本

时间:2021-06-24 05:25:51

I am trying to implement htmlText for a text component as the returned string is in html format (with the html tags etc). If I put a text=.... i get the full text, but with the tags (which i want converted to html). So i use htmlText=.... and it formats it fine, but cuts half the text from the variable. The text im supposed to get back has tons of html tags, and maybe its cutting it somewhere because of the tag its not able to escape... How do i fix this? Any solutions?

我正在尝试为文本组件实现htmlText,因为返回的字符串是html格式(带有html标记等)。如果我把text = ....我得到了全文,但是带有标签(我想转换为html)。所以我使用htmlText = ....并且它格式化很好,但是从变量中删除了一半的文本。我应该回来的文本有大量的html标签,也许它因为标签无法逃脱而在某处切割......我如何解决这个问题?有解决方案?

1 个解决方案

#1


1  

Not all tags are supported in the htmlText property. Here's a list of the tags that can be handled :

并非htmlText属性支持所有标记。这是一个可以处理的标签列表:

http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/text/TextField.html#htmlText

http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/text/TextField.html#htmlText

An example though would make debugging easier :)

一个例子虽然会使调试更容易:)

#1


1  

Not all tags are supported in the htmlText property. Here's a list of the tags that can be handled :

并非htmlText属性支持所有标记。这是一个可以处理的标签列表:

http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/text/TextField.html#htmlText

http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/text/TextField.html#htmlText

An example though would make debugging easier :)

一个例子虽然会使调试更容易:)