VBScript
VBScript
StringBuilder EntityDecode
Demonstrates the Chilkat StringBuilder EntityDecode method to decode HTML entities.Chilkat VBScript Downloads
Dim fso, outFile
Set fso = CreateObject("Scripting.FileSystemObject")
'Create a Unicode (utf-16) output text file.
Set outFile = fso.CreateTextFile("output.txt", True, True)
' Decode the following HTML entities, replacing each with the character represented.
s = "é é é Latin small letter e with acute"
set sb = CreateObject("Chilkat.StringBuilder")
success = sb.Append(s)
success = sb.EntityDecode()
' Output: é é é Latin small letter e with acute
outFile.WriteLine(sb.GetAsString())
outFile.Close