Here is one simple class that can convert html to csv and csv to html using HTML Agility Pack
You can install it by this command in your project folder
dotnet add package HtmlAgilityPack --version 1.11.46
You give to the methods string and have it back already parsed