Titanium JIRA Archive
Alloy (ALOY)

[ALOY-677] XML Entities in views are not unescaped

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionFixed
Resolution Date2013-07-18T01:37:21.000+0000
Affected Version/sAlloy 1.1.3
Fix Version/sAlloy 1.2.0, 2013 Sprint 15
ComponentsXML
Labelsqe-testadded
ReporterChris Rose
AssigneeTony Lukasavage
Created2013-05-29T11:17:27.000+0000
Updated2013-08-06T20:32:10.000+0000

Description

Using: I would expect to see a label with "Hello & World", but it shows as "Hello & amp; World" Using: also displays a label with the text "Hello & amp; World" on it.

Attachments

FileDateSize
iOS Simulator Screen shot 29 May 2013 12.11.40.png2013-05-29T11:17:27.000+000021046

Comments

  1. Chris Rose 2013-05-29

    Spaces added between & and amp; to stop JIRA escaping it :-)
  2. Tony Lukasavage 2013-07-18

    PR: https://github.com/appcelerator/alloy/pull/185 test app: https://github.com/appcelerator/alloy/tree/master/test/apps/testing/ALOY-677 Functional testing on all supported platforms should include:

    Run the test app

    Assert that the ampersand included in the markup for 2 of the OptionDialog buttons renders as an actual "&" and not as "&" as it did previous to this ticket.

    Click any OptionDialog button to close it

    Assert that the ampersand included in the markup for both the label and button renders as an actual "&" and not as "&" as it did previous to this ticket.

  3. Federico Casali 2013-08-06

    Verified working as expected. Titanium SDK 3.1.2.v20130806034554 Alloy 1.2.0-alpha6 Appcelerator Studio 3.1.2.201308021524 CLI 3.1.1 Node 0.10.13 Closing.

JSON Source