go-htmlescape/string.go

11 lines
161 B
Go
Raw Normal View History

2024-02-13 16:02:34 +00:00
package htmlescape
func String(str string) string {
var buffer [bufferSize]byte
2024-02-13 16:41:23 +00:00
var p []byte = buffer[0:0]
2024-02-13 16:02:34 +00:00
p, _ = AppendString(p, str)
return string(p)
}