My Account | Buy CometChat

documentation

sanitize()

sanitize() function allows you to clean up user input and process it as per CometChat’s settings.

The API

The function will return the new value after it has been sanitized and processed. During processing hyperlinks, banned words and smileys maybe added depending on your configuration.

sanitize($message);

If you wish to only clean the input, use sanitize_core($message)