--- In [email protected], "Tracy Spratt" <[EMAIL PROTECTED]> wrote: > > Have you considered using the RichTextEditor? > > Tracy
How would that help? > > From: [email protected] [mailto:[EMAIL PROTECTED] On > Behalf Of Amy > Sent: Tuesday, October 30, 2007 2:22 PM > To: [email protected] > Subject: [flexcoders] Replacing Caret character in text > > > > I'm trying to work around the bug in Flex that adds carriage returns > around html tags in XML, even ones wrapped in CDATA. So, I figure the > caret character is the closest match for the < (<) for my client to > easily be able to edit the XML files without having to learn a whole > lot of code or having to write an editor for them. > > The code I am using is: > > var caret:RegExp = /\^\g/; > theText=contentItem.valueOf().toString(); > theText=theText.replace(caret, "<"); > > but nothing gets replaced. > > What am I missing? > > Thanks; > > Amy >

