Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-20378] Android: Internationalisation CDATA not working in strings.xml

GitHub Issuen/a
TypeBug
PriorityHigh
StatusOpen
ResolutionUnresolved
Affected Version/sn/a
Fix Version/sn/a
ComponentsAndroid
Labelscb-tooling
ReporterChee Kiat Ng
AssigneeUnknown
Created2016-02-10T08:21:38.000+0000
Updated2019-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!>]

Comments

No comments

JSON Source