|
ILIAS
release_5-0 Revision 5.0.0-1144-gc4397b1f870
|
Experimental HTML5-based parser using Jeroen van der Meer's PH5P library. More...
Inheritance diagram for HTMLPurifier_Lexer_PH5P:
Collaboration diagram for HTMLPurifier_Lexer_PH5P:Public Member Functions | |
| tokenizeHTML ($html, $config, $context) | |
Public Member Functions inherited from HTMLPurifier_Lexer_DOMLex | |
| __construct () | |
| tokenizeHTML ($html, $config, $context) | |
| muteErrorHandler ($errno, $errstr) | |
| An error handler that mutes all errors. More... | |
| callbackUndoCommentSubst ($matches) | |
| Callback function for undoing escaping of stray angled brackets in comments. More... | |
| callbackArmorCommentEntities ($matches) | |
| Callback function that entity-izes ampersands in comments so that callbackUndoCommentSubst doesn't clobber them. More... | |
Public Member Functions inherited from HTMLPurifier_Lexer | |
| __construct () | |
| parseData ($string) | |
| Parses special entities into the proper characters. More... | |
| tokenizeHTML ($string, $config, $context) | |
| Lexes an HTML string into tokens. More... | |
| normalize ($html, $config, $context) | |
| Takes a piece of HTML and normalizes it by converting entities, fixing encoding, extracting bits, and other good stuff. More... | |
| extractBody ($html) | |
| Takes a string of HTML (fragment or document) and returns the content. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from HTMLPurifier_Lexer | |
| static | create ($config) |
| Retrieves or sets the default Lexer as a Prototype Factory. More... | |
Data Fields inherited from HTMLPurifier_Lexer | |
| $tracksLineNumbers = false | |
| Whether or not this lexer implements line-number/column-number tracking. More... | |
Protected Member Functions inherited from HTMLPurifier_Lexer_DOMLex | |
| tokenizeDOM ($node, &$tokens) | |
| Iterative function that tokenizes a node, putting it into an accumulator. More... | |
| createStartNode ($node, &$tokens, $collect) | |
| createEndNode ($node, &$tokens) | |
| transformAttrToAssoc ($node_map) | |
| Converts a DOMNamedNodeMap of DOMAttr objects into an assoc array. More... | |
| wrapHTML ($html, $config, $context) | |
| Wraps an HTML fragment in the necessary HTML. More... | |
Static Protected Member Functions inherited from HTMLPurifier_Lexer | |
| static | escapeCDATA ($string) |
| Translates CDATA sections into regular sections (through escaping). More... | |
| static | escapeCommentedCDATA ($string) |
| Special CDATA case that is especially convoluted for <script> More... | |
| static | removeIEConditional ($string) |
| Special Internet Explorer conditional comments should be removed. More... | |
| static | CDATACallback ($matches) |
| Callback function for escapeCDATA() that does the work. More... | |
Protected Attributes inherited from HTMLPurifier_Lexer | |
| $_special_entity2str | |
| Most common entity to raw value conversion table for special entities. More... | |
Experimental HTML5-based parser using Jeroen van der Meer's PH5P library.
Occupies space in the HTML5 pseudo-namespace, which may cause conflicts.
| HTMLPurifier_Lexer_PH5P::tokenizeHTML | ( | $html, | |
| $config, | |||
| $context | |||
| ) |
| string | $html | |
| HTMLPurifier_Config | $config | |
| HTMLPurifier_Context | $context |
Reimplemented from HTMLPurifier_Lexer_DOMLex.
Definition at line 21 of file PH5P.php.
References HTMLPurifier_Lexer\normalize(), HTMLPurifier_Lexer_DOMLex\tokenizeDOM(), and HTMLPurifier_Lexer_DOMLex\wrapHTML().
Here is the call graph for this function: