[ Index ] |
PHP Cross Reference of Unnamed Project |
[Source view] [Print] [Project Stats]
(no description)
File Size: | 357 lines (13 kb) |
Included or required: | 1 time |
Referenced: | 0 times |
Includes or requires: | 0 files |
HTMLPurifier_Lexer:: (10 methods):
create()
__construct()
parseData()
tokenizeHTML()
escapeCDATA()
escapeCommentedCDATA()
removeIEConditional()
CDATACallback()
normalize()
extractBody()
Class: HTMLPurifier_Lexer - X-Ref
Forgivingly lexes HTML (SGML-style) markup into tokens.create($config) X-Ref |
Retrieves or sets the default Lexer as a Prototype Factory. By default HTMLPurifier_Lexer_DOMLex will be returned. There are a few exceptions involving special features that only DirectLex implements. param: HTMLPurifier_Config $config return: HTMLPurifier_Lexer |
__construct() X-Ref |
No description |
parseData($string) X-Ref |
Parses special entities into the proper characters. This string will translate escaped versions of the special characters into the correct ones. param: string $string String character data to be parsed. return: string Parsed character data. |
tokenizeHTML($string, $config, $context) X-Ref |
Lexes an HTML string into tokens. param: $string String HTML. param: HTMLPurifier_Config $config param: HTMLPurifier_Context $context return: HTMLPurifier_Token[] array representation of HTML. |
escapeCDATA($string) X-Ref |
Translates CDATA sections into regular sections (through escaping). param: string $string HTML string to process. return: string HTML with CDATA sections escaped. |
escapeCommentedCDATA($string) X-Ref |
Special CDATA case that is especially convoluted for <script> param: string $string HTML string to process. return: string HTML with CDATA sections escaped. |
removeIEConditional($string) X-Ref |
Special Internet Explorer conditional comments should be removed. param: string $string HTML string to process. return: string HTML with conditional comments removed. |
CDATACallback($matches) X-Ref |
Callback function for escapeCDATA() that does the work. param: array $matches PCRE matches array, with index 0 the entire match return: string Escaped internals of the CDATA section. |
normalize($html, $config, $context) X-Ref |
Takes a piece of HTML and normalizes it by converting entities, fixing encoding, extracting bits, and other good stuff. param: string $html HTML. param: HTMLPurifier_Config $config param: HTMLPurifier_Context $context return: string |
extractBody($html) X-Ref |
Takes a string of HTML (fragment or document) and returns the content |
Generated: Tue Mar 17 22:47:18 2015 | Cross-referenced by PHPXref 0.7.1 |