Xojo Plugin
Xojo Plugin
HTML Entity Encode and Decode in StringBuilder
Demonstrates HTML encoding and decoding the contents of a StringBuilder.Chilkat Xojo Plugin Downloads
Dim sb As New Chilkat.StringBuilder
Dim s As String
s = "< é ü ç Ω Hello & World ✓ >"
Dim success As Boolean
success = sb.Append(s)
success = sb.Encode("html","utf-8")
System.DebugLog(sb.GetAsString())
// Output:
// < é ü ç Ω Hello & World ✓ >
// To decode:
success = sb.Decode("html","utf-8")
System.DebugLog(sb.GetAsString())
// Output:
// < é ü ç Ω Hello & World ✓ >