Unescape
#func Unescape(s: str): strReplaces every HTML entity in the text by the characters it stands for: named (é), decimal (é) and hexadecimal (é), with the same rules as Python's html.unescape. Text that is not a valid entity is left unchanged. The result is a new string.
import encoding.html
func main:
page := "<p>Fiancé & crème — €5</p>"
println html.Unescape(page)
println html.Unescape("Tom & Jerry © 2026, a < b")
safe := html.Escape(`<a href="x">it's</a>`)
println safe
println html.EscapeText(`<a href="x">it's</a>`)
println html.Unescape(safe)
end<p>Fiancé & crème — €5</p> Tom & Jerry © 2026, a < b <a href="x">it's</a> <a href="x">it's</a> <a href="x">it's</a>