truncateHtml() protected static method (available since version 2.0.1)
Truncate a string while preserving the HTML.
protected static string truncateHtml ( $string, $count, $suffix, $encoding = false ) | ||
---|---|---|
$string | string |
The string to truncate |
$count | integer | |
$suffix | string |
String to append to the end of the truncated string. |
$encoding | string|boolean |
Please login to continue.