Hi Seblod,
Would it be possible to add to core PHP String plugin string_truncate feature? It is useful because it lets you shorten text by word rather than by character.
I've implemented this feature by adding || v == 'string_truncate' and copying and renaming substr_count in edit.php
Then in php_string.php file I added:
case 'string_truncate':
$value=JHTML::_('string.truncate', $value, $arg1 );
break;
Thanks
Anjo