PHP substr but keep HTML tags?

后端 未结 3 921
不知归路
不知归路 2020-12-28 17:19

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 = \'         


        
3条回答
提交回复
热议问题