The entity name must immediately follow the ‘&’ in the entity reference

Wednesday, January 30th, 2008 | flex

If you’ve ever written code in a binding tag and gotten a special character error try html-encoding the character like you’d do if you were encoding regular text:

Error: <mx:TextInput text=”{(_feed.url && !_feed.isTemporary)?_feed.url:’Save Feed to generate URL’}” />

Works: <mx:TextInput text=”{(_feed.url &amp;&amp;  !_feed.isTemporary)?_feed.url:’Save Feed to generate URL’}” />

It makes sense after the fact but before you actually do it, it just looks odd to html-encode your actionscript.

Tags:

2 Comments to The entity name must immediately follow the ‘&’ in the entity reference

Joseph
December 22, 2008

Thanks for this :)
It was odd indeed.

Satellaview
December 31, 2008

To fix this keep the code external and wrap it in:

<![CDATA[

]]>

Leave a comment

Meta

Search