Chilkat Examples

ChilkatHOMEAndroid™Classic ASPCC++C#C# UWP/WinRTDataFlexDelphi ActiveXDelphi DLLVisual FoxProJavaLianjaMFCObjective-CPerlPHP ActiveXPHP ExtensionPowerBuilderPowerShellPureBasicPythonRubySQL ServerSwiftTclUnicode CUnicode C++Visual Basic 6.0VB.NETVB.NET UWP/WinRTVBScriptXojo PluginNode.js

Visual Basic 6.0 Examples

Async
Certificates
ECC
Email Object
Encryption
FTP
HTML-to-XML/Text
Gzip
HTTP
IMAP
JSON
MHT / HTML Email
PEM
PFX/P12
Java KeyStore (JKS)
POP3
RSA Encryption
MIME
REST
SCP
SMTP
Socket/SSL/TLS
SSH Key
SSH
SFTP
Stream
Tar Archive
XML
XMP
Zip

More Examples...
Google APIs
Google Cloud Storage
Azure Cloud Storage
Amazon S3 (new)
Google Drive
ASN.1
PRNG
Amazon S3
Bounced Email
CSV
Diffie-Hellman
DKIM / DomainKey
DSA
NTLM
QuickBooks

 

 

 

 

 

 

 

(Visual Basic 6.0) Convert HTML to plain-text

Demonstrates how to convert HTML to plain-text. The HTML-to-text conversion component/class is included with the Chilkat HTML-to-XML license.

Chilkat ActiveX Downloads

ActiveX for 32-bit and 64-bit Windows

Dim h2t As New HtmlToText

'  Any string argument automatically begins the 30-day trial.
Dim success As Long
success = h2t.UnlockComponent("30-day trial")
If (success <> 1) Then
    Text1.Text = Text1.Text & h2t.LastErrorText & vbCrLf
    Exit Sub
End If

'  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)

Text1.Text = Text1.Text & plainText & vbCrLf

 

© 2000-2016 Chilkat Software, Inc. All Rights Reserved.