XSS

Javascript - Some quick javascript utility methods for XSS filtering

Tags: 
Web 2.0: 

I often find myself needing to "eval" some content in javascript, where the content happens to be the name of a callback method (sometimes from another iframe on the same web page, e.g. parent.Portal.onWallRendered). You see I create a lot of frameworks that can be hosted by external apps, so those frameworks allow passing in the name of the method to be invoked back when it has rendered on the page (often dynamically on demand) as a query-string parameter.