1
0
mirror of https://github.com/json-iterator/go.git synced 2025-06-24 23:16:47 +02:00

#53 support escapeHtml

This commit is contained in:
Tao Wen
2017-06-15 23:54:43 +08:00
parent d867c8ba5c
commit 5f22e50c89
30 changed files with 590 additions and 249 deletions

View File

@ -22,7 +22,7 @@ func (any *objectLazyAny) ValueType() ValueType {
func (any *objectLazyAny) Parse() *Iterator {
iter := any.iter
if iter == nil {
iter = NewIterator(DEFAULT_CONFIG)
iter = NewIterator(ConfigOfDefault)
any.iter = iter
}
iter.ResetBytes(any.remaining)
@ -308,7 +308,7 @@ func (any *objectLazyAny) IterateObject() (func() (string, Any, bool), bool) {
// read from buffer
iter := any.iter
if iter == nil {
iter = NewIterator(DEFAULT_CONFIG)
iter = NewIterator(ConfigOfDefault)
any.iter = iter
}
iter.ResetBytes(remaining)