I have been using Yii for more than 10 years since yii 1.0. But never thing of doing any sanitizing input until I learned wordpress when I am recommended to sanitize the input coming from, a form.
At the moment, I only do validation like trim, string, required, number, etc. Is is enough to do the sanitazion?
I heard about HtmlPurifier couple years ago but I remembered someone said that it was slow.
should I do some strip_tags, htmlentities? I am only handling basic data not html data.
Any enlightment how should we do to the incoming input from the form?