News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Evert Pot's Blog:
Preventing XSS in Javascript strings
August 01, 2008 @ 12:04:47

Evert Pot has pointed out a handy tool that can make escaping strings in and out of your application simpler - Reform.

Reform is a tool that does exactly this. Reform allows you to escape your data for a javascript, xml, html or vbscript (yes it still exists) context. It provides libraries for Java, .NET, PHP, Perl, Python, Javascript and ASP. Pretty cool!

The utility is simply included into the application an called via the static methods it adds. His example shows the escaping of some output text in a Javascript string to correctly prevent it from falling into an evil XSS scheme.

0 comments voice your opinion now!
xss javascript string reform owasp static method


blog comments powered by Disqus

Similar Posts

Sebastian Bergmann's Blog: AJAX-Based Test Runner for PHPUnit

NETTUTS.com: Creating a Dynamic Poll with jQuery and PHP

Acunetix.com: Web Site Security Center

Matt Curry's Blog: Check Out These Upgrades I Made To The CakePHP DebugKit

Ryan Grove's Blog: Minify combines, minifies &caches JavaScript & CSS files to speed up page loads


Community Events





Don't see your event here?
Let us know!


laravel list interview library series symfony language deployment opinion community framework release tips zendserver install api package podcast update introduction

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework