Issue
Characters are not escaping correctly with CDATA tags.
Answer
Best practices using CDATA tags--you want the following to appear on our platform:
<b>I say hello world</b>
DO Do encase entire string with CDATA. |
<string name="hello"><![CDATA[<b>I say hello world</b>]]></string> |
DO NOT |
DO NOT have multiple CDATA tags in one string <string name="hello"><![CDATA[<b>]]>I say hello world<![CDATA[</b>]]></string>
|
DO NOT encase a CDATA tag within another CDATA tag <string name="hello"><![CDATA[<b>I say<![CDATA[extra tag]]>hello world]]></string> |
DO NOT have text before or after the CDATA tags. This will cause issues doing import and export
<string name="hello">I say<![CDATA[<b>hello world</b>]]></string>
|
Lastly, DO NOT manually add CDATA tags through the online platform. Any CDATA tags should exist in the imported source file.
*Note: Android XML HTML tags do not require CDATA tags to escape correctly.
Comments
1 comment
Thank you for assisting individuals in obtaining the information they require. As usual, fantastic work. Continue your excellent work!!!
Contact basket random
Please sign in to leave a comment.