Skip to content

Instantly share code, notes, and snippets.

@skdream
skdream / index.html
Created October 23, 2013 15:02
mytest
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
</body>
</html>
/**
* method to test string for XSS
* @name PXHLR.preventXSS
* @type Function
* @member PXHLR
* @returns String that doesn't allow XSS Cross Site Scripting attack
*/
PXHLR.preventXSS = function (str) {
var paramStr = str;