Titanium JIRA Archive
Alloy (ALOY)

[ALOY-819] Alloy 1.2.1 escapes control values contained within XML

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionDuplicate
Resolution Date2013-09-06T12:40:23.000+0000
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsregression
ReporterDavide Cassenti
AssigneeTony Lukasavage
Created2013-09-05T17:19:23.000+0000
Updated2014-06-22T13:23:19.000+0000

Description

Problem description

When using a control character (e.g. \n) inside XML with Alloy 1.2.1, the character is escaped and shown in the text.

Steps to reproduce

Use the following code in index.xml:
<Alloy>
  <Window>
    <Label id="label" text="Click me to open\n\nan Image"></Label>
  </Window>
</Alloy>
Running the code on iPhone, I can see \n\n in the text. With Alloy 1.2.0 the new line is shown as a new line.

Comments

  1. Tony Lukasavage 2013-09-05

    [~dcassenti] I believe this is a duplicate of ALOY-813. Can you try running this sample against the 1_2_X branch of Alloy on Github and see if it resolves the error. You can install it straight from github like this:
       sudo npm install -g git://github.com/appcelerator/alloy.git#1_2_X
       
  2. Tony Lukasavage 2013-09-06

    Duplicate of ALOY-813

JSON Source