InvalidHtmlTagException
- Type
- Class
- Namespace
- craft\errors
- Inherits
- craft\errors\InvalidHtmlTagException » yii\base\InvalidArgumentException (opens new window) » yii\base\InvalidParamException (opens new window) » BadMethodCallException (opens new window)
- Since
- 3.7.27
InvalidHtmlTagException represents an invalid HTML tag encountered via craft\helpers\Html::parseTag().
View source (opens new window)
# Public Properties
Property | Description |
---|---|
attributes | array (opens new window), null (opens new window) – The tag attributes |
htmlStart | integer (opens new window), null (opens new window) – The tag’s inner HTML starting position |
start | integer (opens new window), null (opens new window) – The tag’s starting position |
type | string (opens new window), null (opens new window) – The tag type |
# attributes
- Type
- array (opens new window), null (opens new window)
- Default value
null
The tag attributes
View source (opens new window)
# htmlStart
- Type
- integer (opens new window), null (opens new window)
- Default value
null
The tag’s inner HTML starting position
View source (opens new window)
# start
- Type
- integer (opens new window), null (opens new window)
- Default value
null
The tag’s starting position
View source (opens new window)
# type
- Type
- string (opens new window), null (opens new window)
- Default value
null
The tag type
View source (opens new window)
# Public Methods
Method | Description |
---|---|
__construct() | Constructor. |
getName() |
# __construct()
Constructor.
View source (opens new window)
Arguments
$message
(string (opens new window)) – The error message$type
(string (opens new window), null (opens new window)) – The tag type$attributes
(array (opens new window), null (opens new window)) – The tag attributes$start
(integer (opens new window), null (opens new window)) – The tag’s starting position$htmlStart
(integer (opens new window), null (opens new window)) – The tag’s inner HTML starting position
# getName()
View source (opens new window)
Returns
string (opens new window) – The user-friendly name of this exception