Sample code for 30+ languages & platforms
Visual Basic 6.0 Requires Chilkat v11.1.0+

HTML Encoding

Demonstrates HTML encoding and decoding.

Chilkat Visual Basic 6.0 Downloads

Visual Basic 6.0
Dim crypt As New ChilkatCrypt2

Dim s As String
s = "< é ü ç Ω Hello & World ✓ >"

Dim htmlEncoded As String
htmlEncoded = crypt.EncodeString(s,"utf-8","html")
Debug.Print htmlEncoded

'  Output:
'  < &eacute; &uuml; &ccedil; &ohm; Hello & World &check; >

'  To decode:
s = crypt.DecodeString(htmlEncoded,"utf-8","html")
Debug.Print s

'  Output:
'  < é ü ç Ω Hello & World ✓ >