Way to sanitize text inputs
Way to sanitize text inputs
mfitportal
Posts: 20Questions: 7Answers: 0
So I've noticed that you can enter in html code for the text field in an editor and it just accepts it as html code. Example I use <strong>words<strong> and it displays as words. Is there anyway to sanitize the input before it gets sent to the database?
This discussion has been closed.
Answers
Depending on what you want, it might be better to sanitize after retrieving from the database.