我正在使用laravel 5.5试图限制ckeditor字符串,但它像这样输出了我
我的数据库
<p> something something something something something </p>
我正在尝试这样的尝试
{!! substr($content,0, 20) !!}
输出
<p> something ...
并且不关闭段落,这就是为什么我的页面崩溃而不正常工作
如何将ckeditor字符串转换为普通字符串并限制此
谢谢
使用 strip_tags()
{!! strip_tags(substr($content,0, 20)) !!}
substr_replace($fetch_testimonials['fld_testinomial_description'], "...", 200);