Jump to content

clean html during storing or showing?


hassank1

Recommended Posts

I am working on something familiar to a forum

so when user post a message .. shoud I clean it from html tags etc.. then save it to the DB

or I save it to the DB then I clean it after showing it ??

 

I am using the 2nd because I am saying what if later I want to enable some html tags to be displayed..then I still have the original text ... !!

 

anyway what's better?

Link to comment
https://forums.phpfreaks.com/topic/96032-clean-html-during-storing-or-showing/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.