MyBB Community Forums

Full Version: Using Forum Database for Other Parts of Site
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
I'm sure $db->escape() does that, but I'd have to check to be sure Confused
(2011-11-18, 12:19 AM)dragonexpert Wrote: [ -> ]If you are storing the content in a database you should also use htmlspecialchars_uni function.

If the content isn't shown to the user there's no reason to run it through specialchars, it could just introduce problems in the long-run.

@Tom K. The escape_string method just sanitizes inputs for database interaction; it won't run specialchars.
Pages: 1 2