- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for jsStrEscaper (0.09 sec)
-
src/html/template/js_test.go
"pqrstuvwxyz{|}~\x7f" + "\u00A0\u0100\u2028\u2029\ufeff\U0001D11E") tests := []struct { name string escaper func(...any) string escaped string }{ { "jsStrEscaper", jsStrEscaper, `\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007` + `\u0008\t\n\u000b\f\r\u000e\u000f` + `\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017` + `\u0018\u0019\u001a\u001b\u001c\u001d\u001e\u001f` +
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Feb 27 02:20:11 UTC 2024 - 12.6K bytes - Viewed (0) -
src/html/template/js.go
if pad { buf.WriteByte(' ') } return buf.String() } return string(b) } // jsStrEscaper produces a string that can be included between quotes in // JavaScript source, in JavaScript embedded in an HTML5 <script> element, // or in an HTML5 event handler attribute such as onclick. func jsStrEscaper(args ...any) string { s, t := stringify(args...) if t == contentTypeJSStr {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 26 19:58:28 UTC 2024 - 14.1K bytes - Viewed (0)