News Feed
Jobs Feed
Sections




News Archive
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

Martynas Jusevicius' Blog: Method overloading in PHP 5

DevShed: Using Static Methods to Validate Data with Helpers in PHP 5

NetTuts.com: 20 All Too Common Coding Pitfalls For Beginners

DevShed: Handling File Data with the Facade Pattern in PHP 5

DevShed: Returning Strings from Views with Code Igniter


Community Events











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


development zendframework2 code series example framework unittest introduction language conference testing release opinion interview community tool functional podcast phpunit application

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