Availability: >= 3.0
Type: Object Method
Description: If users post excessively long words this can break-apart the design of your site. This function will cut words that are over a certain length.
string $html = wproUtilities::longWordBreak (string $html_code [, integer $length [, string $cut]]);
The function returns the HTML code with long words cut.
The code sent from the form post that you want to process.
optional, words over this length will be cut, the default value is 40.
optional, long words will be cut using this value. The default is a space.
In the following example $code holds the code sent from the form post and words over 50 characters will be cut with a space:
$code = wproUtilities::longWordBreak ($code, 50, ' ');