When coding a CMS system, should HTML be stored in the database?
Ex. If the structure of the db table is this:
create table annoucement (
id int unsigned NOT NULL AUTO_INCREMENT,
title tinytext,
body text,
PRIMARY KEY(ID)
);
What if the user wants to be able to make certain text in the body field of the db bold, italic, different color, etc. Should they be allowed to enter HTML in the text field or should there be some sort of special tags (like vbCode).
I would lean toward having special tags, but I can't explain to another person in a clear way as to why we shouldn't store HTML in the db.
Also, I don't know if anyone has see some of the IE specific WYSIWYG editors that are floating around. Those are nice for people who do not know HTML, but they insert HTML tags into the body field. Any thoughts? I don't mind that it's IE specific the backend/administrative section can be IE specific, and the what a visitor sees will be cross browser compatible.
Is there any WYSIWYG editors out there that allow for me to customize what tags they insert?