How to get rid of ZgotmplZ from html/template in Golang?
问题 I'm using Golang in backend. When I render the html using html/templates I'm getting ZgotmplZ for URL's. {{if .UserData.GitURL}} <li> <a href="{{.UserData.GitURL}}"> <i class="icon fa fa-github"></i> </a> </li> {{end}} I'm using string for GitURL in server side. This URL is https . When I looked for solutions some blog suggested to use safeURL . So I tried, {{if .UserData.GitURL}} <li> <a href="{{.UserData.GitURL | safeURL}}"> <i class="icon fa fa-github"></i> </a> </li> {{end}} But code didn