Forum Moderators: not2easy

Message Too Old, No Replies

How to format articles to store in my database?

Plain html or something else?

         

fischermx

8:40 pm on Sep 27, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi,

I'm starting to put articles I've wrote in a database for publishing them.
The articles are using html with very basic tags like bold, italics, lists and hyperlinks. I this way I can easly display them in my pages already formated, however, I wonder if this is the correct way.
I've seen forums sites that allows formating use a pseudo-html markup using brakets instead of less-than/greater-then signs. But I guess, in that case I would need to do some programming to recode that to html in order to display them.
Any idea?

coopster

9:53 pm on Sep 27, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



I find articles/data being developed and used on site pages are best stored in the markup intended. To peel the code out or alter in some form or another is easy to do as there are many options at your disposal with server-side technology.

So, if the primary purpose/use of the data will be web page display, store it that way. If you never need to use it any other way, you are a step ahead. If you need to get rid of or change the markup THEN you can use a server-side technology to do so.

Your gut instinct is correct here, fischermx -- go with it.

fischermx

10:00 pm on Sep 27, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Thanks for your opinion.
Actually, I was thinking to use FreeTextBox, since I'm programming on asp.net.
I didn't see the component closely before, but now I see it gets you the code in plain html!
So, well, I'll keep on that.