修复JSON序列化HTML实体参数错误问题
This commit is contained in:
parent
0d2a068178
commit
2a8ebdc569
2
json.go
2
json.go
@ -72,7 +72,7 @@ func (oj *ownJSON) UnmarshalWithNumberForString(input string, receiver interface
|
||||
func (oj *ownJSON) MarshalForByte(input interface{}) []byte {
|
||||
buffer := bytes.NewBuffer([]byte{})
|
||||
encoder := json.NewEncoder(buffer)
|
||||
encoder.SetEscapeHTML(true)
|
||||
encoder.SetEscapeHTML(false)
|
||||
_ = encoder.Encode(input)
|
||||
return buffer.Bytes()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user