Remove extra newlines from HTML content.