Truncation utility which preserves HTML content and can truncate by lines.