You can also find useful functions on cflib.org for formatting and remove word crap. Htmltidy may also help you, this is not a cfml tag though so use google.
Russ -----Original Message----- From: Terry Troxel [mailto:[email protected]] Sent: 06 November 2010 16:58 To: cf-talk Subject: RE: Formatting the output of a text datatype You just might try Fckeditor for your text datatype entries as it has Paste from word which strips all the various MS formatting. You can modify the menubar to only include the Controls that are needed. Terry -----Original Message----- From: Monique Boea [mailto:[email protected]] Sent: Saturday, November 06, 2010 8:34 AM To: cf-talk Subject: Re: Formatting the output of a text datatype Ok thanks! ----- Original Message ----- From: Michael Grant To: cf-talk Sent: Saturday, November 06, 2010 10:16 AM Subject: Re: Formatting the output of a text datatype For display you could try <pre></pre> which should preserve your line breaks at least. It's been a while since I've used it so I'm unsure of it's limitations. You could also try replacing chr(10) & chr(13) with <br> to create html line breaks. As far as the strange characters it's probably the weird open and close quotes etc that word uses. There's probably a regex out there for doing the reformatting. On Sat, Nov 6, 2010 at 9:40 AM, Monique Boea <[email protected]> wrote: > > hello > > I am working on a app where users input their resumes. > > I am using a TEXT datatype for some of my fields for large areas of text > i.e. Career Summary. > > The problem is when I output the text, there is not formatting to it and it > looks like a large jumbled block of text. > > Some of the user cut and paste from Word, so there are strange characters > in the data also. > > What is the best practice for storing and outputting large bodies of text? > > Thank you. > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338908 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

