MediaWiki master
MWTidy Class Reference

Class to interact with and configure Remex tidy. More...

Static Public Member Functions

static tidy ( $text)
 Interface with Remex tidy.
 

Detailed Description

Class to interact with and configure Remex tidy.

Definition at line 31 of file MWTidy.php.

Member Function Documentation

◆ tidy()

static MWTidy::tidy ( $text)
static

Interface with Remex tidy.

If tidy isn't able to correct the markup, the original will be returned in all its glory with a warning comment appended.

Parameters
string$textHTML input fragment. This should not contain a <body> or <html> tag.
Returns
string Corrected HTML output
Deprecated
since 1.36; use MediaWikiServices::getTidy()->tidy() instead

Definition at line 42 of file MWTidy.php.


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