PDA

View Full Version : How to ignore comments in html text



CayoHueso
September 25th, 2009, 10:13 PM
Hi,

I have an html file that includes some comments <!-- --> and when I load it into a textField in a Flash movie, there is an empty line where the comment is. How to eliminate the empty line, if I want to keep the comment in the HTML file?

Thanks,

newenay
September 28th, 2009, 09:56 AM
you could try <![CDATA[ <p>your content</p><!--your comments--><p>your content</p> ]]>

I use this in my .xml to let flash know that it is imported html data.

CayoHueso
September 28th, 2009, 03:35 PM
Didn't work...is there any other way?