mapbox / tokml

Convert GeoJSON to KML.
http://mapbox.github.io/tokml/
BSD 2-Clause "Simplified" License
190 stars 91 forks source link

escaping cdata? #30

Open skinnyjames opened 8 years ago

skinnyjames commented 8 years ago

Great module!

I'm converting kml which contains cdata to geojson and saving that back to kml. In the process, the cdata tags are lost, which makes the xml invalid. I resolved this issue by changing the description function to wrap the description in a cdata tag. I'd try to push it, but I'm not sure if it would goof anything up.

Anywho, thanks!