Parsoid
A bidirectional parser between wikitext and HTML5
|
A Parsoid extension module may contain one or more DOMProcessors, which allow Parsoid to post-process the DOM in the wt2html direction, or pre-process the DOM in the html2wt direction. More...
Public Member Functions | |
wtPostprocess (ParsoidExtensionAPI $extApi, Node $root, array $options) | |
Post-process DOM in the wt2html direction. | |
htmlPreprocess (ParsoidExtensionAPI $extApi, Element $root) | |
Pre-process DOM in the html2wt direction. | |
A Parsoid extension module may contain one or more DOMProcessors, which allow Parsoid to post-process the DOM in the wt2html direction, or pre-process the DOM in the html2wt direction.
@phan-file-suppress PhanEmptyPublicMethod
Wikimedia\Parsoid\Ext\DOMProcessor::htmlPreprocess | ( | ParsoidExtensionAPI | $extApi, |
Element | $root ) |
Pre-process DOM in the html2wt direction.
ParsoidExtensionAPI | $extApi | |
Element | $root |
Wikimedia\Parsoid\Ext\DOMProcessor::wtPostprocess | ( | ParsoidExtensionAPI | $extApi, |
Node | $root, | ||
array | $options ) |
Post-process DOM in the wt2html direction.
ParsoidExtensionAPI | $extApi | |
DocumentFragment | Element | $root | The root of the tree to process |
array | $options |
Reimplemented in Wikimedia\Parsoid\ParserTests\ParserHookProcessor.