netbe / Babelish

Chaotically confused, like Babel
http://netbe.github.io/Babelish
MIT License
254 stars 84 forks source link

android2csv: CDATA content are removed #73

Open Neoklosch opened 9 years ago

Neoklosch commented 9 years ago

In an Android xml string file it's possible that an entry contains a CDATA block.

An example for that: <string name="html"><![CDATA[<p>Text<p>]]></string>

After running the converter, the CDATA block is removed in the resulting csv.

result: html,<p>Text<p>

If you convert the csv back to a xml the CDATA block is still missing and the xml file is completely wrong and it end in an error in android cause plain xml is not allowed.

result: <string name="html"><p>Text<p></string>