Re: Textarea formatting question

2000-06-27 Thread Adam Cantrell


I just did that last week.  I was temporarily putting the #textbody#
variable in pre tag, but this string works better for what I was doing

#ReplaceNoCase("#textbody#", Chr(13), "br", "ALL")#

but I still haven't figured out how to filter out any unwanted tags that
could easily cause damage - just haven't got to it yet.  Like if some guy
puts cfdirectory, cffile, or even cfmail to turn my cfserver into a
spam gateway or something.  I'm sure there's a simple function for it, but
if anyone knows of a good method for allowing only certain tags to display,
I would appreciate any pointers.

- Original Message -
From: "Jamie Symonds" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, June 27, 2000 4:26 PM
Subject: Textarea formatting question


 Hi - A quick question - I'm using a few textarea blocks in my form for
 users to submit large chunks of data to a memo field in an access
 database - this data to be submitted is formatted with blank lines,
 tabs, carriage returns, etc. - how do I retain formatting so that when
 the user views their information on file (just querying and displaying
 in a CFOUTPUT) it's the same as it was when entered?

 Thanks


 --

 Archives: http://www.eGroups.com/list/cf-talk
 To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.


--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



Re: Textarea formatting question

2000-06-27 Thread rkeniger



Hi - A quick question - I'm using a few textarea blocks in my form for
users to submit large chunks of data to a memo field in an access
database - this data to be submitted is formatted with blank lines,
tabs, carriage returns, etc. - how do I retain formatting so that when
the user views their information on file (just querying and displaying
in a CFOUTPUT) it's the same as it was when entered?


Try using #paragraphformat(htmleditformat(your_content_here))#. Works for me.


Rob Keniger


--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.