Moodle  2.2.1
http://www.collinsharper.com
HTMLPurifier_Lexer_PH5P Class Reference
Inheritance diagram for HTMLPurifier_Lexer_PH5P:
Collaboration diagram for HTMLPurifier_Lexer_PH5P:

Public Member Functions

 tokenizeHTML ($html, $config, $context)

Detailed Description

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

Note:
Recent changes to PHP's DOM extension have resulted in some fatal error conditions with the original version of PH5P. Pending changes, this lexer will punt to DirectLex if DOM throughs an exception.

Definition at line 13 of file PH5P.php.


Member Function Documentation

tokenizeHTML ( string,
config,
context 
)

Lexes an HTML string into tokens.

Parameters:
$stringString HTML.
Returns:
HTMLPurifier_Token array representation of HTML.

Reimplemented from HTMLPurifier_Lexer_DOMLex.

Definition at line 15 of file PH5P.php.

Here is the call graph for this function:


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations