Created
December 17, 2012 08:05
-
-
Save vanx2/4316559 to your computer and use it in GitHub Desktop.
escape test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <html> | |
| <body> | |
| <form name=a> | |
| <input type=text name=x value="te\st"> | |
| <input type=button onClick="alert(document.a.x.value);"> | |
| <hr> | |
| <div id="y">te\st</div> | |
| <input type=button onClick="alert(document.getElementById('y').innerHTML);"> | |
| <hr> | |
| <input type=button onClick="alert('te\st');"> | |
| </form> | |
| </body> | |
| </html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment