moko-resources icon indicating copy to clipboard operation
moko-resources copied to clipboard

support CDATA

Open galdp opened this issue 3 years ago • 1 comments

Using html in CDATA will break build, because of not consistent parsing.

actual

  • < produce &lt;
  • > stays >

Expected

  • < produce &lt;
  • > produce &gt;

env

Just tried the latest release 0.18 with kotlin 1.6.10.

raw string resource:

   <string name="test_translate_with_html"><![CDATA[This is a test<br>provided with an break row.]]></string>

parsed string in build

<string name="test_translate_with_html">This is a test&lt;br>provided with an break row.</string>

Related to #167

galdp avatar Jan 28 '22 16:01 galdp

ok it not break build. New content with ' has broken it.

ghost avatar Jan 28 '22 16:01 ghost