Truncation utility which preserves HTML tags and content.