{ "id": "64183", "key": "TIMOB-3551", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": null, "resolutiondate": null, "created": "2011-04-15T03:46:33.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "RTN", "cb-tooling", "cdata", "html", "strings", "xml" ], "versions": [], "issuelinks": [], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2020-01-09T19:49:39.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10207", "name": "Tooling" } ], "description": "{html}

A CDATA section in strings.xml is not parsed by Titanium. This\ncould be necessary if HTML entities are needed.

\n
\n<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<resources>\n  <string name=\"test\"><![CDATA[<h1>Headline</h1>]]></string>\n</resources>\n
\n

L('test') returns only an empty string.

{html}", "attachment": [], "flagged": false, "summary": "CDATA not parsed in strings.xml", "creator": { "name": "netspy", "key": "netspy", "displayName": "netspy", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "netspy", "key": "netspy", "displayName": "netspy", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "393679", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Confirmed, this is still an issue in Titanium master (currently 6.1.0). The {{i18n.js}} file in {{titanium-sdk/lib}} only grabs the first child:\r\n\r\n{code}\r\nelem.firstChild.data\r\n{code}\r\n\r\nSince CDATA would introduce more than one child node, we only get the first child node. We will need to serialize the entire node and it's children to a string to be returned.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2016-08-19T22:34:54.000+0000", "updated": "2016-08-19T22:34:54.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }