htmlspecialchars_decode

htmlspecialchars_decode

[code=golang]

package main

import (
	"fmt"
	"golang.org/x/net/html"
)

func main() {
	fmt.Println(htmlspecialchars_decode("Hello,&nbsp世界"))
}

func htmlspecialchars_decode(str string) string {
	return html.UnescapeString(str)
}

[/code]