You need to escape the xml formatting before sending it to the client.
In cold fusion you could use the XMLFormat() function so if you're using
cf, just wrap that around your return, or find a similar function for
the back end lang you're using.


Brian.. 

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of pdflibpilot
Sent: Monday, February 26, 2007 9:54 PM
To: [email protected]
Subject: [flexcoders] Storing / retrieving rich text

I am trying to develop a method to allow web administrators to be able
to edit text in their Flex application directly in the UI (without
Flex). This text gets saved to mySQL when they close the rich text
editor.  

The data is stored correctly in mySQL however when its retrieved it gets
formated as an XML object when extracted from the event.result.

While this makes it easy to populate the various labels and text objects
with the rich text data. The problem is that the rich text data gets
formatted as XML with new lines and indents. Like in this
dmup............

<contentLive>
  <TEXTFORMAT LEADING="2">
    <P ALIGN="CENTER">
      <FONT FACE="Verdana" SIZE="14" COLOR="#FFFFFF" LETTERSPACING="0"
KERNING="0">
        <B>This is </B>
        <FONT COLOR="#0033FF">
          <B>
            <U>live content</U>
          </B>
        </FONT>
      </FONT>
    </P>
  </TEXTFORMAT>
</contentLive>

How can I force it to treat it as raw text just like its stored in mySQL
without the formatting ? 



------------------------ Yahoo! Groups Sponsor --------------------~-->
Great things are happening at Yahoo! Groups.  See the new email design.
http://us.click.yahoo.com/lOt0.A/hOaOAA/yQLSAA/nhFolB/TM
--------------------------------------------------------------------~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links





***
The information in this e-mail is confidential and intended solely for the 
individual or entity to whom it is addressed.  If you have received this e-mail 
in error please notify the sender by return e-mail delete this e-mail and 
refrain from any disclosure or action based on the information.
***

Reply via email to