Download the script(s)
http://owasp-esapi-js.googlecode.com/files/esapi-compressed.js
http://owasp-esapi-js.googlecode.com/files/esapi.js
Import the Compressed or Uncompressed JS File on your page
<!-- Uncompressed Version --> <script type="text/javascript" language="JavaScript" src="esapi.js"></script> <!-- Compressed Version --> <script type="text/javascript" language="JavaScript" src="esapi-compressed.js"></script>
Initialize the ESAPI
$ESAPI_Initialize();
Do some cool stuff!
var val = "<div>Test</div>"; alert( $ESAPI.encoder().encodeForHTML( val ) ); try { alert( $ESAPI.encoder().canonicalize( val ) ); } catch (e) { alert( e.getUserMessage() ); }
I should be getting some documentation written up this weekend that explains how to configure the ESAPI for JavaScript and how to use the functionality that is complete.
In the meantime, you can see the source for the ESAPI4JS Encoder which is fully implemented.
If you are interested in getting involved in the project, shoot me an email and we will see how you can help out!
Development conversation about the ESAPI happens on the esapi-dev mailing list
User support is available on the esapi-user mailing list.
Welcome to mmoggg website to buy RS Gold, offer a lot, of course, Diablo 3 Gold or Diablo 3 Gold Kaufen and Cheap RS Gold, to be purchased at any time, at any time shipment, and look forward to your visit!
ReplyDeleteI recommend reading it to the end.
ReplyDeleteLondon Escort Services