Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
HTMLPurifier_Node Class Reference
Inheritance diagram for HTMLPurifier_Node:
HTMLPurifier_Node_Comment HTMLPurifier_Node_Element HTMLPurifier_Node_Text

Public Member Functions

 toTokenPair ()
 Returns a pair of start and end tokens, where the end token is null if it is not necessary.
 

Public Attributes

 $armor = array()
 Lookup array of processing that this token is exempt from.
 
 $col
 Column number of the start token in the source document.
 
 $dead = false
 When true, this node should be ignored as non-existent.
 
 $line
 Line number of the start token in the source document @type int.
 

Member Function Documentation

◆ toTokenPair()

HTMLPurifier_Node::toTokenPair ( )
abstract

Returns a pair of start and end tokens, where the end token is null if it is not necessary.

Does not include children. @type array

Reimplemented in HTMLPurifier_Node_Comment, HTMLPurifier_Node_Element, and HTMLPurifier_Node_Text.

Member Data Documentation

◆ $armor

HTMLPurifier_Node::$armor = array()

Lookup array of processing that this token is exempt from.

Currently, valid values are "ValidateAttributes". @type array

◆ $col

HTMLPurifier_Node::$col

Column number of the start token in the source document.

Null if unknown. @type int

◆ $dead

HTMLPurifier_Node::$dead = false

When true, this node should be ignored as non-existent.

Who is responsible for ignoring dead nodes? FixNesting is responsible for removing them before passing on to child validators.


The documentation for this class was generated from the following file: