Titanium JIRA Archive
Appcelerator Community (AC)

[AC-2218] Ampersand renders incorrectly in view

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionInvalid
Resolution Date2013-02-06T23:22:31.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsAlloy
Labelsalloy, view, xml
ReporterMichael Stelly
AssigneeShak Hossain
Created2012-11-09T00:05:01.000+0000
Updated2016-03-08T07:41:12.000+0000

Description

Create a test file: test.xml When this is run as an Alloy app, Label 1 renders incorrectly. Label 2 renders correctly. I expected Label 1 to output as Label 2 does. But it renders like this: Year & Make

Attachments

FileDateSize
ampersand-fail.tiff2012-11-09T00:05:01.000+0000126082

Comments

  1. Tony Lukasavage 2013-02-06

    In XML, if you need an ampersand in the content of an element, you need to use the XML-safe notation:
       <Alloy>
         <Window fullscreen="true" id="window">
           <Label>Year & Make</Label>
           <Label text="Year & Make"/>
         </Window>
       </Alloy>
       
    Also, since you've indicated no styles, there's a chance they are sitting on top of each other.
  2. Miles Matthias 2013-02-06

    {noformat}&{noformat} didn't work for me, however {noformat}\u0026{noformat} did.
  3. Shak Hossain 2013-12-27

    Since this is not reproducible, we are closing this.

JSON Source