Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-16149

LiveView: does not decode XML entities in i18n strings.xml

    Details

      Description

      Description

      i18n strings.xml contain xml entity & (as &). When it is run with live view enabled then it does not decode it and shows output as & in simulator.

      Test Case

      app.js

      var win = Titanium.UI.createWindow({
          backgroundColor : '#fff'
      });
       
      win.add(Titanium.UI.createLabel({
          color : '#333',
          text : L('test_str'),
      }));
       
      win.open();
      

      strings.xml

      <?xml version="1.0" encoding="UTF-8"?>
      <resources>
          <string name="test_str">Some &amp; more</string>
      </resources>
      

      Expected Output

      Some & more

      Output when running in LiveView

      Some amp; more

        Attachments

          Activity

            People

            • Assignee:
              csullivan Christian Sullivan
              Reporter:
              rsharma Rupesh Sharma
              Reviewer:
              Michael Xia
            • Watchers:
              0 Start watching this issue

              Dates

              • Due:
                Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-18155
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Source Code