/** * Wrap words after a particular number of characters. * * @param string $strString The string to wrap. * * @param integer $strLength The number of characters to wrap after. * * @param string $strBreak An optional break character. * * @return string The wrapped string */ public static function wordWrap($strString, $strLength = 75, $strBreak = "\n") { if (self::isStringUtilAvailable()) { return StringUtil::wordWrap($strString, $strLength, $strBreak); } return \Contao\String::wordWrap($strString, $strLength, $strBreak); }