从 Flex 中的字符串取消转义(解码)HTML 字符 [英] Unescape (decode) HTML characters from string in Flex
本文介绍了从 Flex 中的字符串取消转义(解码)HTML 字符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在 Flex (AS3) 中从字符串中转义 HTML 编码的字符(例如 >
、<
等)?
How can I unescape HTML encoded characters (such as >
, <
, etc.) from a string, in Flex (AS3)?
所以,我有一个字符串 "x > 3"
并且我希望结果字符串为 "x > 3"
.
So, I have a string "x > 3"
and I want the result string as "x > 3"
.
推荐答案
可能最简单的方法是通过 TextArea 或其他基于文本的组件发送它.这也将剥离包含 CDATA 标签,
Probably the easiest way is to just send it through a TextArea or other text based component. This will also strip off containing CDATA tags,
这篇关于从 Flex 中的字符串取消转义(解码)HTML 字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文