hassank1 Posted March 13, 2008 Share Posted March 13, 2008 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 More sharing options...
Daniel0 Posted March 13, 2008 Share Posted March 13, 2008 I'd go with the second option as well. Link to comment https://forums.phpfreaks.com/topic/96032-clean-html-during-storing-or-showing/#findComment-491748 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.