- return $this->cache->remember('custom-head-export:' . $hash, 86400, function() use ($content) {
- return HtmlContentFilter::removeScripts($content);
+
+ return $this->cache->remember('custom-head-export:' . $hash, 86400, function () use ($content) {
+ return HtmlContentFilter::removeScriptsFromHtmlString($content);