Parsoid
A bidirectional parser between wikitext and HTML5
Wikimedia\Parsoid\Wikitext\ContentModelHandler Class Reference
+ Inheritance diagram for Wikimedia\Parsoid\Wikitext\ContentModelHandler:
+ Collaboration diagram for Wikimedia\Parsoid\Wikitext\ContentModelHandler:

Public Member Functions

 __construct (Env $env)
 Sneak an environment in here since it's not exposed as part of the ParsoidExtensionAPI. More...
 
 toDOM (ParsoidExtensionAPI $extApi)
 
Parameters
ParsoidExtensionAPI$extApi
Returns
Document

 
 fromDOM (ParsoidExtensionAPI $extApi, ?SelserData $selserData=null)
 
Parameters
ParsoidExtensionAPI$extApi
?SelserData$selserData
Returns
string

 

Constructor & Destructor Documentation

◆ __construct()

Wikimedia\Parsoid\Wikitext\ContentModelHandler::__construct ( Env  $env)

Sneak an environment in here since it's not exposed as part of the ParsoidExtensionAPI.

Parameters
Env$env

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