Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is supported too.

Differences Between: [Versions 311 and 401] [Versions 311 and 402] [Versions 311 and 403]

(no description)

File Size: 4788 lines (187 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 3 classes

HTMLPurifier_Lexer_PH5P:: (1 method):
  tokenizeHTML()

HTML5:: (31 methods):
  __construct()
  save()
  char()
  character()
  characters()
  dataState()
  entityDataState()
  tagOpenState()
  closeTagOpenState()
  tagNameState()
  beforeAttributeNameState()
  attributeNameState()
  afterAttributeNameState()
  beforeAttributeValueState()
  attributeValueDoubleQuotedState()
  attributeValueSingleQuotedState()
  attributeValueUnquotedState()
  entityInAttributeValueState()
  bogusCommentState()
  markupDeclarationOpenState()
  commentState()
  commentDashState()
  commentEndState()
  doctypeState()
  beforeDoctypeNameState()
  doctypeNameState()
  afterDoctypeNameState()
  bogusDoctypeState()
  entity()
  emitToken()
  EOF()

HTML5TreeConstructer:: (33 methods):
  __construct()
  emitToken()
  initPhase()
  rootElementPhase()
  mainPhase()
  beforeHead()
  inHead()
  afterHead()
  inBody()
  inTable()
  inCaption()
  inColumnGroup()
  inTableBody()
  inRow()
  inCell()
  inSelect()
  afterBody()
  inFrameset()
  afterFrameset()
  trailingEndPhase()
  insertElement()
  insertText()
  insertComment()
  appendToRealParent()
  elementInScope()
  reconstructActiveFormattingElements()
  clearTheActiveFormattingElementsUpToTheLastMarker()
  generateImpliedEndTags()
  getElementCategory()
  clearStackToTableContext()
  resetInsertionMode()
  closeCell()
  save()


Class: HTMLPurifier_Lexer_PH5P  - X-Ref

Experimental HTML5-based parser using Jeroen van der Meer's PH5P library.
Occupies space in the HTML5 pseudo-namespace, which may cause conflicts.

tokenizeHTML($html, $config, $context)   X-Ref

param: string $html
param: HTMLPurifier_Config $config
param: HTMLPurifier_Context $context
return: HTMLPurifier_Token[]

Class: HTML5  - X-Ref

__construct($data)   X-Ref
No description

save()   X-Ref
No description

char()   X-Ref
No description

character($s, $l = 0)   X-Ref
No description

characters($char_class, $start)   X-Ref
No description

dataState()   X-Ref
No description

entityDataState()   X-Ref
No description

tagOpenState()   X-Ref
No description

closeTagOpenState()   X-Ref
No description

tagNameState()   X-Ref
No description

beforeAttributeNameState()   X-Ref
No description

attributeNameState()   X-Ref
No description

afterAttributeNameState()   X-Ref
No description

beforeAttributeValueState()   X-Ref
No description

attributeValueDoubleQuotedState()   X-Ref
No description

attributeValueSingleQuotedState()   X-Ref
No description

attributeValueUnquotedState()   X-Ref
No description

entityInAttributeValueState()   X-Ref
No description

bogusCommentState()   X-Ref
No description

markupDeclarationOpenState()   X-Ref
No description

commentState()   X-Ref
No description

commentDashState()   X-Ref
No description

commentEndState()   X-Ref
No description

doctypeState()   X-Ref
No description

beforeDoctypeNameState()   X-Ref
No description

doctypeNameState()   X-Ref
No description

afterDoctypeNameState()   X-Ref
No description

bogusDoctypeState()   X-Ref
No description

entity()   X-Ref
No description

emitToken($token)   X-Ref
No description

EOF()   X-Ref
No description

Class: HTML5TreeConstructer  - X-Ref

__construct()   X-Ref
No description

emitToken($token)   X-Ref
No description

initPhase($token)   X-Ref
No description

rootElementPhase($token)   X-Ref
No description

mainPhase($token)   X-Ref
No description

beforeHead($token)   X-Ref
No description

inHead($token)   X-Ref
No description

afterHead($token)   X-Ref
No description

inBody($token)   X-Ref
No description

inTable($token)   X-Ref
No description

inCaption($token)   X-Ref
No description

inColumnGroup($token)   X-Ref
No description

inTableBody($token)   X-Ref
No description

inRow($token)   X-Ref
No description

inCell($token)   X-Ref
No description

inSelect($token)   X-Ref
No description

afterBody($token)   X-Ref
No description

inFrameset($token)   X-Ref
No description

afterFrameset($token)   X-Ref
No description

trailingEndPhase($token)   X-Ref
No description

insertElement($token, $append = true, $check = false)   X-Ref
No description

insertText($data)   X-Ref
No description

insertComment($data)   X-Ref
No description

appendToRealParent($node)   X-Ref
No description

elementInScope($el, $table = false)   X-Ref
No description

reconstructActiveFormattingElements()   X-Ref
No description

clearTheActiveFormattingElementsUpToTheLastMarker()   X-Ref
No description

generateImpliedEndTags($exclude = array()   X-Ref
No description

getElementCategory($node)   X-Ref
No description

clearStackToTableContext($elements)   X-Ref
No description

resetInsertionMode()   X-Ref
No description

closeCell()   X-Ref
No description

save()   X-Ref
No description