Sample code for 30+ languages & platforms
Xojo Plugin

Convert HTML to Plain Text

Demonstrates how to convert HTML to plain text.

Chilkat Xojo Plugin Downloads

Xojo Plugin
// This example requires the Chilkat API to have been previously unlocked.
// See Global Unlock Sample for sample code.

Dim h2t As New Chilkat.HtmlToText

Dim html As String
html = h2t.ReadFileToString("c:/temp/test.html","utf-8")
If (h2t.LastMethodSuccess = False) Then
    System.DebugLog(h2t.LastErrorText)
    Return
End If

Dim plainText As String
plainText = h2t.ToText(html)
If (h2t.LastMethodSuccess = False) Then
    System.DebugLog(h2t.LastErrorText)
    Return
End If

System.DebugLog(plainText)