How to clip HTML fragments without breaking up tags?

后端 未结 4 1813
谎友^
谎友^ 2021-01-03 12:06

Say I have a 200 character string that contains HTML markup. I want to show a preview of just the first 50 chars. without \'splitting up\' the tags. In other words, the frag

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