config = $config; } /** * @param \Magento\Framework\App\Response\Http $subject * @return void */ public function beforeSendResponse(Http $subject): void { $content = $subject->getContent(); if(! is_string($content) || strpos($content, ComponentInitBlock::SCRIPT_TAG_REPLACEMENT) === false) { return; } $subject->setContent( str_replace(ComponentInitBlock::SCRIPT_TAG_REPLACEMENT, 'script', $content) ); } }