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
3 comments
Thank you for assisting individuals in obtaining the information they require. As usual, fantastic work. Continue your excellent work!!!
Contact basket random
Thus, we will count a placeholder as one word to compensate the effort of translators to take care of them. Same concept applies to HTML tags or any words or numbers that need not to be translated like yacine tv
To recognize the effort translators put into managing them, each placeholder will be counted as one word. This approach also applies to HTML tags and elements like specific names or numbers that don't need translation, such as 'Yacine TV' Illinois Pass
Please sign in to leave a comment.