> I am inserting a textarea into a database and when I retrieve the data I
> would like to format it if the user has not put any breaks or returns.
> Basically, I would like to parse the text, use the formatting the user has
> used, but if they entered a long string of text, replace every
> 15th space or
> set to a fixed width to force wrapping. Anyone have any suggestions?
To format returns into <BR>s you'll have to replace in CF;
Replace(myCopy,chr(13),"<br>","all")
To wrap to a specific width, either put the copy into a table cell or put it
in a Frame - table cells are easier, but they do change between IE and NS a
bit, so you'll have to check it in both
Philip Arnold
Director
Certified ColdFusion Developer
ASP Multimedia Limited
T: +44 (0)20 8680 1133
"Websites for the real world"
**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
**********************************************************************
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists