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