Tcl
Tcl
StringBuilder EntityDecode
Demonstrates the Chilkat StringBuilder EntityDecode method to decode HTML entities.Chilkat Tcl Downloads
load ./chilkat.dll
# Decode the following HTML entities, replacing each with the character represented.
set s "é é é Latin small letter e with acute"
set sb [new_CkStringBuilder]
CkStringBuilder_Append $sb $s
CkStringBuilder_EntityDecode $sb
# Output: é é é Latin small letter e with acute
puts [CkStringBuilder_getAsString $sb]
delete_CkStringBuilder $sb