It seems a simple question and I expected I could find an answer
easily here but couldn't.
I want to write the angle bracket '<' inside description tags like "<
25" (less than 25) and not as html tags.
I tried both with and without CDATA but failed.
<description>< 25 (less than 25)</description>
<description><![CDATA[
<table><tr><td>< 25 (less than 25)</td></tr></table>
]]></description>
The only way I found to show < is to use CDATA without any html tags.
<description><![CDATA[< 25 (less than 25)]]></description>
But this is not my solution because I need to include a lot of HTML
contents (e.g. table).
Any solutions?
Here is the sample KML for your reference.
http://seamap.env.duke.edu/tools/test.kml
Thanks,
<description><![CDATA[
<table><tr><td>&lt; 25 (less than 25)</td></tr></table>
]]></description>
I thought it would make sense. In fact, it doesn't work as expected.
Without CDATA, &lt; shows "< 25". That's good.
<description>&lt; 25 (less than 25)</description>
But, with CDATA as you suggested, it doesn't become "< 25".
Is this a bug?
By the way, > turns to ">" properly within CDATA.
<description><![CDATA[<table><tr><td>> - <</td></tr></
table>]]></description>
not sure why the < doesn't work, but the numeric version does, but
it a least it works.
Because GE is bug-ridden...
Jonathan