eth4io / libkml

Automatically exported from code.google.com/p/libkml
Other
0 stars 0 forks source link

HTML in description can be caught before it is removed #136

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.
Load a document that has HTML in the description.
<description><table><tr><td>test</td></tr></table>
2. The HTML is stripped and put in unknown element array

What is the expected output? What do you see instead?
This makes sense because the HTML should be escaped or wrapped in CDATA but
unfortunately I don't have control of the data.
Google Earth can load it, so I would like to emulate this behavior but I
can't hook into this before the elements are removed. Using an observer,
NewElement doesn't have the char_data and in EndElement the tags are
already removed.

What version of the product are you using? On what operating system?
version 1.0 on windows.

Did you run the unit test suite that comes with the project? Did all tests
pass?
Yes and Yes

Please provide any additional information below.

The attached file has network links that have this issue when trying to
display a balloon.

Original issue reported on code.google.com by tomfil...@gmail.com on 16 Feb 2010 at 2:47

Attachments:

GoogleCodeExporter commented 8 years ago
I believe r719 fixed his for you:
http://code.google.com/p/libkml/source/detail?r=719

We'll make a 1.2 release soon that will include this fix.

Original comment by kml.mash...@gmail.com on 16 Feb 2010 at 7:13