Implement HTML-aware summary creation