tags:

views:

352

answers:

0

Is there any way to cleanup JavaScript code?

I want to enable users to post arbitrary JS but i want to filter some of it out, like eval and document.write. Do you know of any tool that can do this?