
Originally Posted by
odoisc
I think it would be best to only add the html decoration AFTER you pull that info out of the database and fill it in the page you want to show.
Just think about this ... right now you want all the nicknames on your site to be shown in italic ... but next year you do a redesign of your site, and you think it would suit better if all nicks would be shown in bold instead of italic .. and then you look at your database with thousands of nicknames that are italic ... oops !
ofcourse, you could filter those <em> tags out of it, or use a function to replace them with <b> .. but still, it would not be very efficient.
So I'd say that the standard practice is to avoid any html that early, and to only add it on the end of the process , so when a page is generated with that info.
Bookmarks