RE: [SPAM] [flexcoders] mx:Text and htmlText attribute

2009-11-15 Thread Tracy Spratt
Well, you don't want to escape the html symbols if you are assigning the
html text via actionscript.  You only need to use the entity syntax if you
are using declarative mxml, because the compiler will convert them to the
normal characters.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of jarottman
Sent: Friday, November 13, 2009 2:18 PM
To: flexcoders@yahoogroups.com
Subject: [SPAM] [flexcoders] mx:Text and htmlText attribute

 

  

I am having a small issue with the htmltext attribute on a Text component. 

If I use the following text statically I get the the result that I am
looking for. A red Text component that has the text Some Text in bold.

lt;font color=#ffgt;lt;bgt;Some Textlt;/bgt;lt;/fontgt;

Now when I pull this same data in from my cfc, I get the following display
on my Text component. Instead of rendering the html correctly the html
attribute is simply outputting the formatted html as text.

font color=#ffbSome Text/b/font

Here is my Text Control:
mx:Text y=36 x=10 htmlText=Title: {mReviewVO.MediaTitle}
fontSize=12/

mReviewVO is a bindable value object.

Here is the dump I get for mReviewVO.MediaTitle:
MediaTitle = lt;font color=#ffgt;lt;bgt;Some
Textlt;/bgt;lt;/fontgt;

The reason I don't just make the entire component red is because I am
checking for black listed words. And only the black listed words have
alternate text color and weight.

Has anyone ever run into an issue like this before? This is becoming a pain.





[flexcoders] mx:Text and htmlText attribute

2009-11-13 Thread jarottman
I am having a small issue with the htmltext attribute on a Text component. 

If I use the following text statically I get the the result that I am looking 
for. A red Text component that has the text Some Text in bold.

lt;font color=#ffgt;lt;bgt;Some Textlt;/bgt;lt;/fontgt;

Now when I pull this same data in from my cfc, I get the following display on 
my Text component. Instead of rendering the html correctly the html attribute 
is simply outputting the formatted html as text.

font color=#ffbSome Text/b/font

Here is my Text Control:
mx:Text y=36 x=10 htmlText=Title: {mReviewVO.MediaTitle} fontSize=12/

mReviewVO is a bindable value object.

Here is the dump I get for mReviewVO.MediaTitle:
  MediaTitle = lt;font color=#ffgt;lt;bgt;Some 
Textlt;/bgt;lt;/fontgt;


The reason I don't just make the entire component red is because I am checking 
for black listed words. And only the black listed words have alternate text 
color and weight.

Has anyone ever run into an issue like this before? This is becoming a pain.