Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for htmlSafeSet (0.08 sec)

  1. src/encoding/json/encode.go

    }
    
    func appendString[Bytes []byte | string](dst []byte, src Bytes, escapeHTML bool) []byte {
    	dst = append(dst, '"')
    	start := 0
    	for i := 0; i < len(src); {
    		if b := src[i]; b < utf8.RuneSelf {
    			if htmlSafeSet[b] || (!escapeHTML && safeSet[b]) {
    				i++
    				continue
    			}
    			dst = append(dst, src[start:i]...)
    			switch b {
    			case '\\', '"':
    				dst = append(dst, '\\', b)
    			case '\b':
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:18:55 UTC 2024
    - 36.2K bytes
    - Viewed (0)
Back to top