The entity name must immediately follow the ‘&’ in the entity reference
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.
Thanks for this :)
It was odd indeed.
To fix this keep the code external and wrap it in:
<![CDATA[
]]>
Thanks for the tip. I really didn’t think it will work but it did
Worked like a charm.. thanks..
zupper!!!
Thanks! It also works with binding…
enabled=”{Boolean(someValue) && Boolean(someOtherVal)}”
Bugger – code got converted – replace the &’s with the & amp; ’s
Thanks. You save me.
Thanks. This saved me a bunch of hacking around.
Thank you so much for this tip:)
it really save me time to try the other ways around.
thanks, this worked. Will try out with the CDATA wrap too.
Thank you so much. How did you ever figure that out??!!
you saved my life
Yay thanks ! I really needed this silly thing was driving me nuts ! TANK you :D
another thank from Germany!
G8 , u r my god
Thanks for your help!!
Thanks so much… and Kevin for the binding tip… So helpful!
thank you very much! it bothers me long time!!!