golang json.Marshal 特殊html字符被轉義解決方案

go語言提供了json的編解碼包,json字符串做爲參數值傳輸時發現,json.Marshal生成json特殊字符<、>、&會被轉義。html type Test struct { Content string } func main() { t := new(Test) t.Content = "http://www.baidu.com?id=123&test=1
相關文章
相關標籤/搜索