C# library to clean up html

Perfecto

Client
Регистрация
06.08.2013
Сообщения
94
Благодарностей
4
Баллы
8
I am looking for a way to clean HTML code in C#
remove empty html tags or not close for example
like : https://html-cleaner.com/
 

VladZen

Administrator
Команда форума
Регистрация
05.11.2014
Сообщения
22 241
Благодарностей
5 847
Баллы
113
You can use Text processing>Trim operation to remove garbage from html
Also, get (-Page.Text-} if you need plain text of a webpage without html code
 

Perfecto

Client
Регистрация
06.08.2013
Сообщения
94
Благодарностей
4
Баллы
8
Hi,
Thank you for your answer but it doesn't answer my need. I am looking to clean up this kind of useless code:

Or some HTML tags that are never closed like <p>
 

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)