Sample code for 30+ languages & platforms
Xojo Plugin Requires Chilkat v11.1.0+

HTML Encoding

Demonstrates HTML encoding and decoding.

Chilkat Xojo Plugin Downloads

Xojo Plugin
Dim crypt As New Chilkat.Crypt2

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

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

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

//  To decode:
s = crypt.DecodeString(htmlEncoded,"utf-8","html")
System.DebugLog(s)

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