Practice
How to check all user messages for dangerous characters before saving?
Need to strip all HTML tags
remove SQL operations
break a long word into shorter words so they fit within the length
remove certain characters from the message
note that for preg_replace to support UTF-8 encoding, you need to add /u at the end of the pattern
Comments