#Replace(yourVarHere, chr(13), "", "ALL")# <-- For Carriage returns.
#Replace(yourVarHere, chr(10), "", "ALL")# <-- For linefeeds
-----Original Message-----
From: Ben Densmore [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 20, 2004 10:59 AM
To: CF-Talk
Subject: Carriage returns in XML file
I'm wondering if there is a way to fix an attribute in an XML file
that has carriage returns in it? I have an admin section that has a
teaxtarea for putting in a description as well as some other fields.
The problem is if the user puts carriage returns in the textarea the
xml file outputs like:
<event title="Test Event" description="This is a test event
with some events in it
" startDate="2004-07-18" endDate="2004-07-18" allDay="0" eventType="once" />
This of course breaks my code when I go to read in the line of the XML
file. I tried using StripCR() but it still writes the XML file in this
same manner. I also used a Reg Ex but could never get the node to
output all on one line.
Anyone run into something similar and come up with a fix?
Thanks,
Ben
_____
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

