Hi, I want to ask, how to filter comments in Yii? Example, if I don’t want rough words in a comment of a user, how to do that? Thanks for answering me.
Hi, I want to ask, how to filter comments in Yii? Example, if I don’t want rough words in a comment of a user, how to do that? Thanks for answering me.
you can use regex to search for those words
Hi Arnold
There are couple of approaches you could verify the comments yourself before they are published (time consuming) or you could use regex as Mathew mentioned wordpress uses regex to parse the blacklisted words before saving the stuff to the database
Thanks for all replies and advices, I prefer to use the regex. Thanks all