?
Solved

Convert HTML to text IN VB.Net.

Posted on 2014-01-20
2
Medium Priority
?
1,316 Views
Last Modified: 2014-01-21
Hi Guys

I need to convert HTML TO TEXT.

Below is an example of HTML.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=windows-1252" http-equiv=Content-Type>
<STYLE><!-- p { margin-top: 0em; margin-bottom: 0em; font-family:"","serif"; } --></STYLE>

<META name=GENERATOR content="MSHTML 10.00.9200.16750"></HEAD>
<BODY>
<P>Hi there</P>
<P>&nbsp;</P>
<P>Why does this have to be so complicated.</P>
<P>&nbsp;</P>
<P>Cheers</P>
<P>Shezad</P>
<P>&nbsp;</P>
<P>&nbsp;</P></BODY></HTML>
0
Comment
Question by:Shezad Ahmed
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 40

Accepted Solution

by:
Kyle Abrahams earned 2000 total points
ID: 39794658
From:
http://social.msdn.microsoft.com/Forums/vstudio/en-US/ba388d58-6a6c-4039-ac2d-c7ef0ab721fe/html-content-convert-to-text?forum=wcf

It looks like you can use the html agility pack (http://htmlagilitypack.codeplex.com/):

Dim plainText as String = ConvertToPlainText(MyhtmlString)
0
 

Author Closing Comment

by:Shezad Ahmed
ID: 39796663
Thanks,

It worked a treat.
0

Featured Post

AWS Certified Solutions Architect - Associate

This course has been developed to provide you with the requisite knowledge to not only pass the AWS CSA certification exam but also gain the hands-on experience required to become a qualified AWS Solutions architect working in a real-world environment.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Welcome my friends to the second instalment and follow-up to our Minify and Concatenate Your Scripts and Stylesheets (http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/A_4334-Minify-and-Concatenate-Your-Scripts-and-Stylesheets.html)…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses

801 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question