php-htmltruncator icon indicating copy to clipboard operation
php-htmltruncator copied to clipboard

Want to truncate an HTML string properly? This is a PHP port of the html_truncator rubygem.

Results 3 php-htmltruncator issues
Sort by recently updated
recently updated
newest added

Usages of HtmlTruncator, which is apparently no longer maintained, result in a fatal PHP error when the deprecated PHP extension iconv is no longer available. This is because the HTML5Lib...

I've got some autogenerated text in my database generated by https://github.com/fzaninotto/Faker Some of the strings it generated seem to break php-htmltruncator. I noticed that these strings contain a bit of...

The library removes non-self-closing tags without text, such as an iframe. For example: ``` html * string: CreditCaption * length: 500 * result: CreditCaption * desired result: CreditCaption ```