----- Original Message -----
From: "Brad Roberts" <[EMAIL PROTECTED]>
> I'm with you.  If you use paragraphFormat() when inserting the text into
the
> db, you'll end up with html tags in your text.  Then, when someone goes
back
> to edit the data, they'll see the tags.  I think it's usually best for
html
> tags to be transparent to the end user.
----------------------------

I can see the logic in this, but for me it depends on the app. If you're
talking about a CMS, then almost certainly the text will be read from the DB
for output on the front-end *many* more times than read out for editing or
input from the back-end. Seems like a good idea performance-wise to do the
paragraphFormat() where it'll be processed least.

The other thing is, as has been said, CF's own HTML formatting tags are
extremely limited, so I roll my own. This includes "reverse-formatting",
i.e. changing HTML tags back into line-breaks so that people can edit the
stored HTML without the tags appearing in the form.

The only niggly problem here I think is when you have a character limit -
you have to fudge it all a bit because the number of characters the user
enters isn't the number of characters (including tags) to be stored in the
DB.

<cfmoan>
Haven't delved into CFMX's functions regarding HTML formatting, maybe
they've improved. It's one of those things that seems ridiculous, a relative
novice like myself being able to easily whip up much more sophisticated
solutions than the ones created by Allaire/MM. OK, they can't have
sophisticated functions for everything, but you'd think that HTML formatting
would be a top priority as we're all working with it all the time. Not to
mention the fact that CF's built-in functions seem to fly in the face of
current standards (XHTML)...
</cfmoan>

- Gyrus

~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- [EMAIL PROTECTED]
work: http://www.tengai.co.uk
play: http://www.norlonto.net
- PGP key available
~~~~~~~~~~~~~~~~~~~~~~~~~~~~

______________________________________________________________________
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to