B4X Requires Chilkat v11.1.0+
B4X
HTML Encoding
Demonstrates HTML encoding and decoding.Chilkat B4X Downloads
Dim crypt As ChilkatCrypt2
crypt.Initialize("crypt")
Dim s As String = "< é ü ç Ω Hello & World ✓ >"
Dim htmlEncoded As String = crypt.EncodeString(s, "utf-8", "html")
Log(htmlEncoded)
' Output:
' < é ü ç Ω Hello & World ✓ >
' To decode:
s = crypt.DecodeString(htmlEncoded, "utf-8", "html")
Log(s)
' Output:
' < é ü ç Ω Hello & World ✓ >