Issue 77 trimtext

Fixes issue #77 Trimming text and HTML