HTMLPurifier 4.4.0
HTMLPurifier_Lexer_PH5P Class Reference

Experimental HTML5-based parser using Jeroen van der Meer's PH5P library. More...

Inheritance diagram for HTMLPurifier_Lexer_PH5P:
HTMLPurifier_Lexer_DOMLex HTMLPurifier_Lexer HTMLPurifier_Lexer

List of all members.

Public Member Functions

 tokenizeHTML ($html, $config, $context)
 Lexes an HTML string into tokens.

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

HTMLPurifier_Lexer_PH5P::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.

References $config, $html, HTMLPurifier_Lexer::normalize(), HTMLPurifier_Lexer_DOMLex::tokenizeDOM(), and HTMLPurifier_Lexer_DOMLex::wrapHTML().


The documentation for this class was generated from the following file: