github.com/sohaha/zlsgo@v1.7.13-0.20240501141223-10dd1a906f76/zutil/other.go (about)

     1  package zutil
     2  
     3  import (
     4  	"strings"
     5  )
     6  
     7  func UnescapeHTML(s string) string {
     8  	s = strings.Replace(s, "\\u003c", "<", -1)
     9  	s = strings.Replace(s, "\\u003e", ">", -1)
    10  	return strings.Replace(s, "\\u0026", "&", -1)
    11  }