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

pages/goods/goods?gid=56&code=1 會在轉json中變成pages/goods/goods?gid=56\u0026code=1json   解決方案:code   content = strings.Replace(content, "\\u003c", "<", -1) content = strings.Replace(content, "\\u003e", ">
相關文章
相關標籤/搜索