Re: extract text from html

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Excellent solutions.
Thanx.

"m.posseth" <michelp@xxxxxxxxxxxxxxx> wrote in message
news:OjIYCIIAGHA.272@xxxxxxxxxxxxxxxxxxxxxxx
> Patrick ,
>
> if you mean your Goal is just simply removing the HTML tags from a string
>
> i made a function for this purpose with some Regex
>
> Private Function stripHTML(ByVal strHTML) As String
>
> Dim objRegExp As New System.Text.RegularExpressions.Regex("<(.|\n)+?>")
>
> Return objRegExp.Replace(strHTML, "")
>
> End Function
>
> i use this in a winforms app that stripes websites for valuable
> information with a webclient
>
>
>
> hth
>
>
>
> Michel Posseth [MCP]
>
>
> "Patrick" <praft@xxxxxxxxx> wrote in message
> news:%23UkeVbv$FHA.1600@xxxxxxxxxxxxxxxxxxxxxxx
>> I've got some text with a few HTML tags, such as the following
>> <Bold>Hello</Bold>There buddy<p>please .....
>>
>> I need to be able to extract just the text, which would be
>> Hello there buddy please....
>>
>> Note, this is a Windows App, and not a Web App.
>> Any ideas anyone?
>>
>
>


.



Relevant Pages

  • Re: extract text from html
    ... if you mean your Goal is just simply removing the HTML tags from a string ... i made a function for this purpose with some Regex ... Private Function stripHTMLAs String ... > Note, this is a Windows App, and not a Web App. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: June 2005 EAL Question
    ... parameter to a string. ... > public class MyEventLogInstaller: Installer ... You have a web app, ... >>> at Microsoft.Win32.RegistryKey.OpenSubKey(String name, Boolean ...
    (microsoft.public.dotnet.general)
  • Re: Running other applications
    ... associated with a file type (extension). ... file and calling FindExecutable: ... ByVal lpDirectory As String, ByVal lpResult As String) As Long ... > The app is a program called Data Junction. ...
    (microsoft.public.vb.general.discussion)
  • Re: Cant register Windows Scripting Host with Windows 7
    ... My app has been in use since 1999 and is designed to work on Win 95 onwards hence the installer has always include WSH. ... One functions I have used it for in the program is to find the location of the users special folders eg. documents folder and then to delete a subfolder. ... Public Function GetSpecialFolderAs String ... Dim lNullPos As Long ...
    (microsoft.public.vb.general.discussion)
  • RE: SoapHttpClientProtocol request canceled
    ... the VB app on Citrix works fine with .NET components when only ... .NET1.1 is installed and the app uses .NET1.1. ... > The VB.NET exe and the VB6 exe both use VB.NET dll to sent request/response ... >> inputHeaderer, String messageControlPayload, string inputMessage) ...
    (microsoft.public.dotnet.framework.webservices)