gateway . '*') || url_is(config('Install')->gateway)) { return $html; } if (static::$renderedCount > 0) { return $html; } ob_start(); // Start output buffering // run hook to add tags to service('plugins')->siteHead(); $metaTags = ob_get_contents(); // Store buffer in variable ob_end_clean(); if (str_contains($html, '')) { $html = str_replace('', "\n\t{$metaTags}\n", $html); ++static::$renderedCount; } return $html; } }