[TIMOB-20378] Android: Internationalisation CDATA not working in strings.xml
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Open |
Resolution | Unresolved |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Android |
Labels | cb-tooling |
Reporter | Chee Kiat Ng |
Assignee | Unknown |
Created | 2016-02-10T08:21:38.000+0000 |
Updated | 2019-12-09T19:04:32.000+0000 |
Description
in strings.xml files, using CDATA, we are supposed to be able to use HTML:
{quote}
anchor here no problem!]]>
{quote}
This works for iOS but not on Android.
Chee Kiat Ng iPhone 6s Plus simulator
*Strings:*
<resources>
<string name="my_key1"><![CDATA[I can use <a>anchor</a> here no problem!]]></string>
<string name="my_key2">I can use <a>anchor</a> here no problem!></string>
<string name="my_key3">I can use anchor here no problem!></string>
</resources>
*Code:*
Ti.API.info("[" + L('my_key1') + "]");
Ti.API.info("[" + L('my_key2') + "]");
Ti.API.info("[" + L('my_key3') + "]");
*Expected Result:*
[INFO] : [I can use <a>anchor</a> here no problem!]
[INFO] : [I can use ]
[INFO] : [I can use anchor here no problem!>]
No comments