public static script ( string $content, array $options = [] ) : string | ||
$content | string | the script content |
$options | array | the tag options in terms of name-value pairs. These will be rendered as the attributes of the resulting tag. The values will be HTML-encoded using [[encode()]]. If a value is null, the corresponding attribute will not be rendered. See [[renderTagAttributes()]] for details on how attributes are being rendered. |
리턴 | string | the generated script tag |
public static function script($content, $options = [])
{
return static::tag('script', $content, $options);
}