public function getIsHtml() {
return $this->mIsHtml;
}
-
+
/**
* Whether this formatter can format the help message in a nice way.
* By default, this returns the same as getIsHtml().
- * When action=help is set explicitly, the help will always be shown
+ * When action=help is set explicitly, the help will always be shown
* @return bool
*/
public function getWantsHelp() {
* @param $text string
*/
public function printText( $text ) {
+ error_log($text);
if ( $this->mBufferResult ) {
$this->mBuffer = $text;
} elseif ( $this->getIsHtml() ) {
echo $text;
}
}
-
+
/**
* Get the contents of the buffer.
*/
*/
protected function formatHTML( $text ) {
global $wgUrlProtocols;
-
+
// Escape everything first for full coverage
$text = htmlspecialchars( $text );