Free Support Forum - aspose.com

How to extract Text from html using Aspose.html

We are currently checking Aspose.html to get plain text with alignment from html and convert html to PDF.
able to convert html to pdf.
Wanted to know how to get text from html.?

@kiranernesto

You can get text from HTML document using following code snippet:

using (var document = new Aspose.Html.HTMLDocument(htmlFile))
{
 var text = document.DocumentElement.InnerHTML;
}

Please let us know in case you have further inquiry.