Sample code for 30+ languages & platforms
Lua

StringBuilder EntityDecode

Demonstrates the Chilkat StringBuilder EntityDecode method to decode HTML entities.

Chilkat Lua Downloads

Lua
local chilkat = require("chilkat")

-- Decode the following HTML entities, replacing each with the character represented.
local s = "é é é Latin small letter e with acute"

local sb = chilkat.StringBuilder.new()

sb:append(s)
sb:entity_decode()

-- Output: é é é Latin small letter e with acute
print(sb:get_as_string())