tag() public static method
public static string tag ( $name, $content = '', $options = [] ) | ||
---|---|---|
$name | string|boolean|null |
The tag name. If $name is |
$content | string |
The content to be enclosed between the start and end tags. It will not be HTML-encoded. If this is coming from end users, you should consider encode() it to prevent XSS attacks. |
$options | array |
The HTML tag attributes (HTML 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. For example when using See renderTagAttributes() for details on how attributes are being rendered. |
return | string |
The generated HTML tag |
Please login to continue.