[Blogcfc-develop] OT: Storing HTML
Brought to you by:
cfjedimaster
|
From: Ben F. <bf...@ma...> - 2003-08-07 15:08:57
|
Hey all, I need a quick reality check here ... do you store complete HTML (with tags and formatting) in your tblBlogEntries table, or do you store just text, or do you store embedded tokens which you use to render output properly? Or something else altogether? My gut feel is that storing <P> and <FONT> and whatever in the core record is a bad thing. But what about tag markers, do you store <CFSET> or <CFSET>? And what about titles? Embedding < seems to mess up some RSS displays (but not all). I have been storing <CFSET> in my content (and use HTMLEditFormat() to display it properly), that works well but messes up some RSS feeds it seems. I have not been storing any formatting at all, so to crate links I save the URL and have a UDF that turns it into a link at presentation time. That works for links but not, for example, for embedding a code snippet. Anyone have any strong feelings on this one? --- Ben ====================================================== Ben Forta - Macromedia Inc. E-Mail: bf...@ma... Phone: (248)213-0203 Fax: (248)213-0299 Macromedia: http://www.macromedia.com/ Personal: http://www.forta.com/ Blog: http://www.forta.com/blog/ Have questions about ColdFusion? You need the ColdFusion FAQ (now in twelve languages) at http://www.cffaq.com/ - browse, learn, link, comment, and contribute. |