Abstract Class HTMLPurifier_Token

InheritanceHTMLPurifier_Token
SubclassesHTMLPurifier_Token_Comment, HTMLPurifier_Token_Empty, HTMLPurifier_Token_End, HTMLPurifier_Token_Start, HTMLPurifier_Token_Tag, HTMLPurifier_Token_Text

Abstract base token class that all others inherit from.

Public Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$armor Lookup array of processing that this token is exempt from. HTMLPurifier_Token
$carryover HTMLPurifier_Token
$col Column of line node was on in source document. Null if unknown. HTMLPurifier_Token
$line Line number node was on in source document. Null if unknown. HTMLPurifier_Token
$rewind HTMLPurifier_Token
$skip Used during MakeWellFormed. HTMLPurifier_Token

Public Methods

Hide inherited methods

MethodDescriptionDefined By
__get() HTMLPurifier_Token
position() Sets the position of the token in the source document. HTMLPurifier_Token
rawPosition() Convenience function for DirectLex settings line/col position. HTMLPurifier_Token
toNode() Converts a token into its corresponding node. HTMLPurifier_Token

Property Details

$armor public property

Currently, valid values are "ValidateAttributes" and "MakeWellFormed_TagClosedError"

public $armor = []
$carryover public property
public $carryover null
$col public property
public $col null
$line public property
public $line null
$rewind public property
public $rewind null
$skip public property
public $skip null

Method Details

__get() public method

public null|string __get ( $n )
$n string
position() public method

Sets the position of the token in the source document.

public void position ( $l null, $c null )
$l int
$c int
rawPosition() public method

Convenience function for DirectLex settings line/col position.

public void rawPosition ( $l, $c )
$l int
$c int
toNode() public abstract method

Converts a token into its corresponding node.

public abstract void toNode ( )