HTML encode user input when storing or when displaying

后端 未结 4 1934
一个人的身影
一个人的身影 2020-12-14 00:51

Simple question that keeps bugging me.

Should I HTML encode user input right away and store the encoded contents in the database, or should I store the raw values an

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