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

Public Member Functions

 __construct ($data, $is_whitespace, $line=null, $col=null)
 Constructor, accepts data and determines if it is whitespace.
 
 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.
 
 $data
 @type string
 
 $dead = false
 When true, this node should be ignored as non-existent.
 
 $is_whitespace
 @type bool
 
 $line
 Line number of the start token in the source document @type int.
 
 $name = '#PCDATA'
 PCDATA tag name compatible with DTD, see HTMLPurifier_ChildDef_Custom for details.
 

Constructor & Destructor Documentation

◆ __construct()

HTMLPurifier_Node_Text::__construct ( $data,
$is_whitespace,
$line = null,
$col = null )

Constructor, accepts data and determines if it is whitespace.

Parameters
string$dataString parsed character data.
int$line
int$col

Member Function Documentation

◆ toTokenPair()

HTMLPurifier_Node_Text::toTokenPair ( )

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 from HTMLPurifier_Node.

Member Data Documentation

◆ $armor

HTMLPurifier_Node::$armor = array()
inherited

Lookup array of processing that this token is exempt from.

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

◆ $col

HTMLPurifier_Node::$col
inherited

Column number of the start token in the source document.

Null if unknown. @type int

◆ $data

HTMLPurifier_Node_Text::$data

@type string

Parsed character data of text.

◆ $dead

HTMLPurifier_Node::$dead = false
inherited

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.

◆ $is_whitespace

HTMLPurifier_Node_Text::$is_whitespace

@type bool

Bool indicating if node is whitespace.

◆ $name

HTMLPurifier_Node_Text::$name = '#PCDATA'

PCDATA tag name compatible with DTD, see HTMLPurifier_ChildDef_Custom for details.

@type string


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