HumHub Documentation (unofficial)

HTMLPurifier_Token
in package

AbstractYes

Abstract base token class that all others inherit from.

Table of Contents

Properties

$armor  : mixed
Lookup array of processing that this token is exempt from.
$carryover  : mixed
$col  : mixed
Column of line node was on in source document. Null if unknown.
$line  : mixed
Line number node was on in source document. Null if unknown.
$rewind  : mixed
$skip  : mixed
Used during MakeWellFormed. See Note [Injector skips]

Methods

__get()  : null|string
position()  : mixed
Sets the position of the token in the source document.
rawPosition()  : mixed
Convenience function for DirectLex settings line/col position.
toNode()  : mixed
Converts a token into its corresponding node.

Properties

$armor

Lookup array of processing that this token is exempt from.

public mixed $armor = array()

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

Tags
type

array

$carryover

public mixed $carryover
Tags
type

$col

Column of line node was on in source document. Null if unknown.

public mixed $col
Tags
type

int

$line

Line number node was on in source document. Null if unknown.

public mixed $line
Tags
type

int

$rewind

public mixed $rewind
Tags
type

$skip

Used during MakeWellFormed. See Note [Injector skips]

public mixed $skip
Tags
type

Methods

__get()

public __get(string $n) : null|string
Parameters
$n : string
Return values
null|string

position()

Sets the position of the token in the source document.

public position([int $l = null ][, int $c = null ]) : mixed
Parameters
$l : int = null
$c : int = null

rawPosition()

Convenience function for DirectLex settings line/col position.

public rawPosition(int $l, int $c) : mixed
Parameters
$l : int
$c : int

toNode()

Converts a token into its corresponding node.

public abstract toNode() : mixed

        
On this page

Search results