learnlytics-go/templ/generator/test-form-action/template.templ
2025-03-20 12:35:13 +01:00

8 lines
287 B
Plaintext

package testahref
templ render() {
<form action="javascript:alert('unaffected');">Ignored</form>
<form action={ templ.URL("javascript:alert('should be sanitized')") }>Sanitized</form>
<form action={ templ.SafeURL("javascript:alert('should not be sanitized')") }>Unsanitized</form>
}