Store it in the database just as it was typed. Don’t format it.
When you output it, use... 

#replace(var, '#chr(13)##chr(10)#', '<br />', 'all')#


-----Original Message-----
From: Will Tomlinson [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 20, 2006 7:42 AM
To: CF-Talk
Subject: Best way to insert text as html, without a text editor

What's the simplest way to maintain simple formatted text in a db, without
using tinyMCE, FCKeditor, or typing html into the textarea? When I say
simple, I mean I just want to show line breaks, carriage returns, etc. Not
worried about boldness, tables, etc.  

I just tried using paragraphFormat() and it's using uppercase <P>'s. YUCK!

Thanks,
Will



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:257566
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to