MediaWiki master
MediaWiki\Tidy\RemexCompatFormatter Class Reference

Inherits HtmlFormatter.

Collaboration diagram for MediaWiki\Tidy\RemexCompatFormatter:

Public Member Functions

 __construct ( $options=[])
 
 characters (SerializerNode $parent, $text, $start, $length)
 WATCH OUT! Unlike normal HtmlFormatter, this class expects that the $text argument contains unexpanded character references (entities), as a result of using the 'ignoreCharRefs' option in Tokenizer.
 
 element (SerializerNode $parent, SerializerNode $node, $contents)
 
 startDocument ( $fragmentNamespace, $fragmentName)
 

Detailed Description

Access: internal

WATCH OUT! Unlike normal HtmlFormatter, this class requires the 'ignoreCharRefs' option in Tokenizer to be used. If that option is not used, it will produce wrong results (T354361).

Definition at line 16 of file RemexCompatFormatter.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Tidy\RemexCompatFormatter::__construct ( $options = [])

Definition at line 26 of file RemexCompatFormatter.php.

Member Function Documentation

◆ characters()

MediaWiki\Tidy\RemexCompatFormatter::characters ( SerializerNode $parent,
$text,
$start,
$length )

WATCH OUT! Unlike normal HtmlFormatter, this class expects that the $text argument contains unexpanded character references (entities), as a result of using the 'ignoreCharRefs' option in Tokenizer.

If that option is not used, this method will produce wrong results (T354361).

Definition at line 48 of file RemexCompatFormatter.php.

◆ element()

MediaWiki\Tidy\RemexCompatFormatter::element ( SerializerNode $parent,
SerializerNode $node,
$contents )

Definition at line 64 of file RemexCompatFormatter.php.

◆ startDocument()

MediaWiki\Tidy\RemexCompatFormatter::startDocument ( $fragmentNamespace,
$fragmentName )

Definition at line 37 of file RemexCompatFormatter.php.


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