VB.NET
VB.NET
HTML Encoding
Demonstrates HTML encoding and decoding.Chilkat VB.NET Downloads
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:
' < é ü ç Ω Hello & World ✓ >
' To decode:
s = crypt.DecodeString(htmlEncoded,"utf-8","html")
Debug.WriteLine(s)
' Output:
' < é ü ç Ω Hello & World ✓ >