Re: Formatting the output of a text datatype

2010-11-07 Thread Dave Merrill
Sorry, no, HTMLEditFormat replaces < > & and " and their unicode versions with the equivalent HTML entities. It doesn't turn CR or LF into , or fix any Word characters. Dave On Sat, Nov 6, 2010 at 8:55 PM, Larry Lyons wrote: > > Look at the DeMoronize function on CF-Lib.org It does a pretty goo

Re: Formatting the output of a text datatype

2010-11-06 Thread Monique Boea
ubar to only include the Controls that are needed. > > Terry > > -Original Message- > From: Monique Boea [mailto:moniqueb...@gmail.com] > Sent: Saturday, November 06, 2010 8:34 AM > To: cf-talk > Subject: Re: Formatting the output of a text datatype > > > Ok th

Re: Formatting the output of a text datatype

2010-11-06 Thread Larry Lyons
Look at the DeMoronize function on CF-Lib.org It does a pretty good job of removing most Word related crud. http://www.cflib.org/index.cfm?event=page.udfbyid&udfid=725 Also you can use the replace function to replace the windows carriage returns and line feeds with a However it may be easier

Re: Formatting the output of a text datatype

2010-11-06 Thread denstar
On Sat, Nov 6, 2010 at 11:00 AM, Russ Michaels wrote: > > 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. > Totally! cflib.org roxors. You can probably find something that sanitizes

RE: Formatting the output of a text datatype

2010-11-06 Thread Russ Michaels
: 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

RE: Formatting the output of a text datatype

2010-11-06 Thread Terry Troxel
: 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

Re: Formatting the output of a text datatype

2010-11-06 Thread Monique Boea
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 which should preserve your line breaks at least. It's been a while since

Re: Formatting the output of a text datatype

2010-11-06 Thread Michael Grant
Here's a few links, they are php but the regex is what's important. http://php.bigresource.com/replace-non-ascii-characters-SDKRspXA.html#KKysUyTO http://www.wessray.com/php/strip-and-remove-non-ascii-characters-using-php-regular-expressions/

Re: Formatting the output of a text datatype

2010-11-06 Thread Michael Grant
For display you could try 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 to create html line breaks. As far as the strange characters it's probably the weird open and clo

Formatting the output of a text datatype

2010-11-06 Thread Monique Boea
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 cu