for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Remove all JS code
*
* @author Tim Lochmüller
*/
namespace FRUIT\Ink\Postprocessing;
class RemoveJavaScript implements PostprocessingInterface
{
* Run the replacement
* @param string $content
* @return string
* @todo remove also onchange etc.
public function process($content)
return preg_replace('#<script(.*?)>(.*?)</script>#is', '', $content);
}