code_junkie

How does XSS works

Nov 11th, 2011
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. <BODY>
  2. <?= $myQueryParameter ?>
  3. </BODY>
  4.  
  5. function escapePlainTextToHTML(plainText) {
  6. return plainText.replace(//g, '').replace(/&/g, '&').replace(/</g, '<').replace(/>/, '>');
  7. }
Add Comment
Please, Sign In to add comment