code: func (stream *Stream) WriteStringWithHTMLEscaped(s string) {
  	valLen := len(s)
  	stream.buf = append(stream.buf, '"')
  	// write string, the fast path, without utf8 and escape support
  	i := 0
  	for ; i < valLen; i++ {
  		c := s[i]
  		if c < utf8.RuneSelf && htmlSafeSet[c] {
  			stream.buf = append(stream.buf, c)
  		} else {
  			break
  		}
  	}
  	if i == valLen {
  		stream.buf = append(stream.buf, '"')
  		return
  	}
  	writeStringSlowPathWithHTMLEscaped(stream, i, s, valLen)
  }
docs: // WriteStringWithHTMLEscaped write string to stream with html special characters escaped