Store html entities in database? Or convert when retrieved?

后端 未结 8 1224
自闭症患者
自闭症患者 2020-12-03 01:13

Quick question, is it a better idea to call htmlentities() (or htmlspecialchars()) before or after inserting data into the database?

8条回答
提交回复
热议问题