wrapHtml()
wrapHtml( $string, $length = 45, $wrapString = "\n") : string
Wrap a string containing HTML code.
The HTML is not broken, words are broken only if very long.
Improved from a version available on php.net
Parameters
$string | ||
$length | ||
$wrapString |
Returns
string —Wrapped string