Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for jsReAmbigOk (0.17 sec)

  1. src/html/template/escape_test.go

    			`<button onclick='alert(/foo\u002bbar/.test(""))'>`,
    		},
    		{
    			"jsReBlank",
    			`<script>alert(/{{""}}/.test(""));</script>`,
    			`<script>alert(/(?:)/.test(""));</script>`,
    		},
    		{
    			"jsReAmbigOk",
    			`<script>{{if true}}var x = 1{{end}}</script>`,
    			// The {if} ends in an ambiguous jsCtx but there is
    			// no slash following so we shouldn't care.
    			`<script>var x = 1</script>`,
    		},
    		{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 16 03:29:27 UTC 2023
    - 56.2K bytes
    - Viewed (0)
Back to top