Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for jsStrEscaper (1.88 sec)

  1. 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)
  2. 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)
  3. src/html/template/escape.go

    	"_html_template_htmlnamefilter":   htmlNameFilter,
    	"_html_template_htmlescaper":      htmlEscaper,
    	"_html_template_jsregexpescaper":  jsRegexpEscaper,
    	"_html_template_jsstrescaper":     jsStrEscaper,
    	"_html_template_jstmpllitescaper": jsTmplLitEscaper,
    	"_html_template_jsvalescaper":     jsValEscaper,
    	"_html_template_nospaceescaper":   htmlNospaceEscaper,
    	"_html_template_rcdataescaper":    rcdataEscaper,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 02 15:18:39 UTC 2023
    - 32.4K bytes
    - Viewed (0)
Back to top