Skip to content

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().

View source

Public Properties ​

PropertyDescription
attributesarray, null – The tag attributes
htmlStartinteger, null – The tag’s inner HTML starting position
startinteger, null – The tag’s starting position
typestring, null – The tag type

attributes ​

Type
array, null
Default value
null

The tag attributes

View source

htmlStart ​

Type
integer, null
Default value
null

The tag’s inner HTML starting position

View source

start ​

Type
integer, null
Default value
null

The tag’s starting position

View source

type ​

Type
string, null
Default value
null

The tag type

View source

Public Methods ​

MethodDescription
__construct()Constructor.
getName()

__construct() ​

Constructor.

View source

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() ​

View source

Returns ​

string – The user-friendly name of this exception