Ejemplo: convertir html a cadena c # en línea
//you can do it here: https://www.example-code.com/csharp/htmlToText_simple.asp
// This example assumes the Chilkat API to have been previously unlocked.
// See Global Unlock Sample for sample code.
Chilkat.HtmlToText h2t = new Chilkat.HtmlToText();
// Set the HTML:
string html;
html = "<html><body><p>This is a test.</p><blockquote>Here is text within a blockquote</blockquote></body></html>";
string plainText;
plainText = h2t.ToText(html);
Debug.WriteLine(plainText);
// The output looks like this:
// This is a test.
//
// Here is text within a blockquote
¡Haz clic para puntuar esta entrada!
(Votos: 0 Promedio: 0)