I am wondering if there is an elegant way to trim some text but while being HTML tag aware?
For example, I have this string:
$data = \'
substr(strip_tags($content), 0, 100)