src/Helpers/Request/StringHelper.php
protected function truncateHtml($string, $count, $suffix, $encoding = false)
    {
        return $this->proxyWithCharset(__FUNCTION__, [$string, $count, $suffix, $encoding]);
    }
protected function truncateHtml($string, $count, $suffix, $encoding = false)
    {
        return $this->proxyWithCharset(__FUNCTION__, [$string, $count, $suffix, $encoding]);
    }
Truncate a string while preserving the HTML.

@param string $string The string to truncate
@param int $count
@param string $suffix String to append to the end of the truncated string.
@param string|bool $encoding
@return string