HTMLPurifier_ChildDef_StrictBlockquote
extends HTMLPurifier_ChildDef_Required
in package
Takes the contents of blockquote when in strict and reformats for validation.
Table of Contents
Properties
- $allow_empty : mixed
- Indicates whether or not an empty array of children is okay.
- $elements : mixed
- Lookup table of allowed elements.
- $type : mixed
- Type of child definition, usually right-most part of class name lowercase.
- $fake_elements : mixed
- $init : mixed
- $real_elements : mixed
- $whitespace : mixed
- Whether or not the last passed node was all whitespace.
Methods
- __construct() : mixed
- getAllowedElements() : array<string|int, mixed>
- Get lookup of tag names that should not close this element automatically.
- validateChildren() : array<string|int, mixed>
- Validates nodes according to definition and returns modification.
- init() : mixed
Properties
$allow_empty
Indicates whether or not an empty array of children is okay.
public
mixed
$allow_empty
= \true
Tags
$elements
Lookup table of allowed elements.
public
mixed
$elements
= array()
Tags
$type
Type of child definition, usually right-most part of class name lowercase.
public
mixed
$type
= 'strictblockquote'
Tags
$fake_elements
protected
mixed
$fake_elements
Tags
$init
protected
mixed
$init
= \false
Tags
$real_elements
protected
mixed
$real_elements
Tags
$whitespace
Whether or not the last passed node was all whitespace.
protected
mixed
$whitespace
= \false
Tags
Methods
__construct()
public
__construct(array<string|int, mixed>|string $elements) : mixed
Parameters
- $elements : array<string|int, mixed>|string
-
List of allowed element names (lowercase).
getAllowedElements()
Get lookup of tag names that should not close this element automatically.
public
getAllowedElements(HTMLPurifier_Config $config) : array<string|int, mixed>
Parameters
- $config : HTMLPurifier_Config
Tags
Return values
array<string|int, mixed>validateChildren()
Validates nodes according to definition and returns modification.
public
validateChildren(array<string|int, mixed> $children, HTMLPurifier_Config $config, HTMLPurifier_Context $context) : array<string|int, mixed>
Parameters
- $children : array<string|int, mixed>
- $config : HTMLPurifier_Config
- $context : HTMLPurifier_Context
Return values
array<string|int, mixed>init()
private
init(HTMLPurifier_Config $config) : mixed
Parameters
- $config : HTMLPurifier_Config