Problem: FlashPlayer 10.1 XML and HTML-Entity Rendering problem
Hi,
I have some problems using
childNode[0].nodeValue
and HTML Entities since updating my FlashPlayer from version 10.0 to 10.1
First some information about my system:
- FlashPlayer: WIN 10,1,53,64
- OS: WinXP (32bit)
- Browser: Firefox 3.6.6; IE 7.0.5730.13
I am handling XML data which contains for example some HTML Entities like "<" or ">". A XML-Parser reads the nodeValue and puts the text into a HTML enabled textfield. Now FlashPlayer Version 10.1 does not display the text after "<".
For example the following text in XML:
<![CDATA[<ul><li>pressure < 250bar</li>
is rendered as "pressure". Debugging the application shows, that after getting the Text with
childNode[0].nodeValue
returns "pressure < 25bar" so HTML textfield interprets the "<" as a HTML Tag.
Possible Workaround: Using
<![CDATA[<ul><li>pressure %30C; 250bar</li>
and replacing it after reading the nodeValue with "<" solves the problem.
Ist there any other solution without changing my XML Contents? Can I tell Flash or my XMLParser that HTML Tags must not be replaced?
Thank's for any idea and help.