Sample code for 30+ languages & platforms
Visual Basic 6.0

Convert HTML to plain-text

See more HTML-to-XML/Text Examples

Demonstrates how to convert HTML to plain-text.

Chilkat Visual Basic 6.0 Downloads

Visual Basic 6.0
' This example assumes the Chilkat API to have been previously unlocked.
' See Global Unlock Sample for sample code.

Dim h2t As New HtmlToText

' Set the HTML:
Dim html As String
html = "<html><body><p>This is a test.</p><blockquote>Here is text within a blockquote</blockquote></body></html>"

Dim plainText As String

plainText = h2t.ToText(html)

Debug.Print plainText

' The output looks like this:

' This is a test.
' 
'     Here is text within a blockquote