Sample code for 30+ languages & platforms
VB.NET Requires Chilkat v11.1.0+

HTML Encoding

Demonstrates HTML encoding and decoding.

Chilkat VB.NET Downloads

VB.NET
Dim crypt As New Chilkat.Crypt2

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

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

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


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

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