MediaWiki
REL1_19
|
Class used to hide mw:editsection tokens from Tidy so that it doesn't break them or break on them. More...
Public Member Functions | |
__construct () | |
getWrapped ($text) | |
postprocess ($text) | |
replaceEditSectionLinksCallback ($m) | |
Protected Attributes | |
$mMarkerIndex | |
$mTokens | |
$mUniqPrefix |
Class used to hide mw:editsection tokens from Tidy so that it doesn't break them or break on them.
This is a bit of a hack for now, but hopefully in the future we may create a real postprocessor or something that will replace this. It's called wrapper because for now it basically takes over MWTidy::tidy's task of wrapping the text in a xhtml block
This re-uses some of the parser's UNIQ tricks, though some of it is private so it's duplicated. Perhaps we should create an abstract marker hiding class.
MWTidyWrapper::getWrapped | ( | $ | text | ) |
$text | string |
Definition at line 38 of file Tidy.php.
References ParserOutput\EDITSECTION_REGEX.
Referenced by MWTidy\tidy().
MWTidyWrapper::postprocess | ( | $ | text | ) |
$m | array |
Definition at line 59 of file Tidy.php.
References Parser\MARKER_SUFFIX.