Work Around for Escape Character FireFox CDATA

My friend ,found out that if you get the escape character  from cdata it will be translated as it is on firefox.

We do put some html tag on xml , and how to get this translated to html tag again?

already tried the unescape or decode uri but seems not running.

So the work around is using a hidden text area.

set the innerhtml of that text area to your escape character html tags.

and then get the already translated one , using the textarea.innerText( IE ) and textarea.textContent(FireFox)

 

Share this post: | | | |
Published Monday, February 16, 2009 11:42 AM by cipto

Comments

# fire » Blog Archive » Work Around for Escape Character FireFox CDATA - Across boundaries …

Pingback from  fire  » Blog Archive   » Work Around for Escape Character FireFox CDATA - Across boundaries …

# Firefox » Work Around for Escape Character FireFox CDATA - Across boundaries …

Pingback from  Firefox » Work Around for Escape Character FireFox CDATA - Across boundaries …

# re: Work Around for Escape Character FireFox CDATA

Sunday, May 17, 2009 8:37 AM by nick_letobo