|
hi i'm just wondering if you guys do this, and if so, should i still escape quotes? i just saw that mysql can actually store things as is, without escape quotes, however some engines automatically add a quote (maybe due to magic quotes turned on). is this still necessary or is it still advisable to escape the quotes then remove them upon output? |
|
I think there shouldn't be a problem as long as you can retrieve it exactly as it is. That's why magic quotes is actually deprecated and discouraged for 6.x. The main use of it is just so strings doesn't end prematurely when running queries and iirc, the slash doesn't actually gets inserted in db. |
What kind of HTML data would you like to store in the database?
blog posts - html paragraphs, i plan to store an entire layout structure. design tags - bold, italic, strong, etcetera.