flex textarea text attribute but still renders as html
actually i got to the cause of the issue.
if you feed the textarea text attribute with an tag that has a valid src url, then for some reason flex will try to render everyth开发者_JAVA技巧ing as html.
Eg, try this:
<mx:TextArea id="textArea" width="100%" height="90%" text="<img src='http://url-to-a-valid-img"/>
and instead of it rendering it as raw text it will render it as an html.
any idea?
Really? I cannot even get it to compile with the < symbol there. Have you tried converting using <?
okay, strange i manage to fix this issue. its a weird fix not sure why I had to do it.
But basically, when i copy over the variable's string content into a TextArea htmlText - any img with a valid src seems to get erased.
Its an odd issue that I just want to move on from.
精彩评论