[ Index ]

PHP Cross Reference of vtigercrm-6.1.0

title

Body

[close]

/libraries/htmlpurifier/library/HTMLPurifier/Lexer/ -> DOMLex.php (summary)

(no description)

File Size: 213 lines (8 kb)
Included or required: 1 time
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

HTMLPurifier_Lexer_DOMLex:: (8 methods):
  __construct()
  tokenizeHTML()
  tokenizeDOM()
  transformAttrToAssoc()
  muteErrorHandler()
  callbackUndoCommentSubst()
  callbackArmorCommentEntities()
  wrapHTML()


Class: HTMLPurifier_Lexer_DOMLex  - X-Ref

Parser that uses PHP 5's DOM extension (part of the core).

In PHP 5, the DOM XML extension was revamped into DOM and added to the core.
It gives us a forgiving HTML parser, which we use to transform the HTML
into a DOM, and then into the tokens.  It is blazingly fast (for large
documents, it performs twenty times faster than
HTMLPurifier_Lexer_DirectLex,and is the default choice for PHP 5.

__construct()   X-Ref
No description

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

tokenizeDOM($node, &$tokens, $collect = false)   X-Ref
Recursive function that tokenizes a node, putting it into an accumulator.

returns: Tokens of node appended to previously passed tokens.
param: $node     DOMNode to be tokenized.
param: $tokens   Array-list of already tokenized tokens.
param: $collect  Says whether or start and close are collected, set to

transformAttrToAssoc($node_map)   X-Ref
Converts a DOMNamedNodeMap of DOMAttr objects into an assoc array.

returns: Associative array of attributes.
param: $attribute_list DOMNamedNodeMap of DOMAttr objects.

muteErrorHandler($errno, $errstr)   X-Ref
An error handler that mutes all errors


callbackUndoCommentSubst($matches)   X-Ref
Callback function for undoing escaping of stray angled brackets
in comments


callbackArmorCommentEntities($matches)   X-Ref
Callback function that entity-izes ampersands in comments so that
callbackUndoCommentSubst doesn't clobber them


wrapHTML($html, $config, $context)   X-Ref
Wraps an HTML fragment in the necessary HTML




Generated: Fri Nov 28 20:08:37 2014 Cross-referenced by PHPXref 0.7.1