// guaranteed to give accurate results. For example, it may introduce
// differences in the number of line breaks in <pre> tags.
- MediaWiki\suppressWarnings();
+ Wikimedia\suppressWarnings();
if ( !$this->doc->loadXML( '<html><body>' . $text . '</body></html>' ) ) {
$this->invalid = true;
}
- MediaWiki\restoreWarnings();
+ Wikimedia\restoreWarnings();
$this->xpath = new DOMXPath( $this->doc );
$this->body = $this->xpath->query( '//body' )->item( 0 );
}