public static function buildHtmlScript($script, array $attributes = []): string
    {
        $scriptCleaned = trim($script);
        if ($scriptCleaned !== '') {
            return self::buildHtmlElement('script', $attributes, "\n" . $scriptCleaned . "\n");
        }
        return '';
    }
public static function buildHtmlScript($script, array $attributes = []): string
    {
        $scriptCleaned = trim($script);
        if ($scriptCleaned !== '') {
            return self::buildHtmlElement('script', $attributes, "\n" . $scriptCleaned . "\n");
        }
        return '';
    }
public static function buildHtmlScript ( $ script , array $ attributes = [ ] ) : string { $ scriptCleaned = trim ( $ script ) ; if ( $ scriptCleaned !== '' ) { return self :: buildHtmlElement ( 'script' , $ attributes , "\n" . $ scriptCleaned . "\n" ) ; } return '' ; }
Build an html script element
@param mixed $script
@param array $attributes
@return string
Build an html script element