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 &&Â !_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.
2 Comments to The entity name must immediately follow the ‘&’ in the entity reference
Thanks for this :)
It was odd indeed.
To fix this keep the code external and wrap it in:
<![CDATA[
]]>
December 22, 2008