Add RemexHtml to the list of available Tidy drivers
authorTim Starling <tstarling@wikimedia.org>
Wed, 8 Mar 2017 23:18:12 +0000 (10:18 +1100)
committerTim Starling <tstarling@wikimedia.org>
Wed, 8 Mar 2017 23:19:23 +0000 (10:19 +1100)
Change-Id: I5a87a6ed24ca3ef7c5fdb21e74f9eb410bf74b4c

includes/DefaultSettings.php
includes/parser/MWTidy.php

index c483366..7fe7c60 100644 (file)
@@ -4235,7 +4235,8 @@ $wgAllowImageTag = false;
  *    - RaggettInternalPHP: Use the PECL extension
  *    - RaggettExternal: Shell out to an external binary (tidyBin)
  *    - Html5Depurate: Use external Depurate service
- *    - Html5Internal: Use the built-in HTML5 balancer
+ *    - Html5Internal: Use the Balancer library in PHP
+ *    - RemexHtml: Use the RemexHtml library in PHP
  *
  *  - tidyConfigFile: Path to configuration file for any of the Raggett drivers
  *  - debugComment: True to add a comment to the output with warning messages
index 5e54615..01bf2d0 100644 (file)
@@ -138,6 +138,9 @@ class MWTidy {
                        case 'Html5Internal':
                                $instance = new MediaWiki\Tidy\Html5Internal( $config );
                                break;
+                       case 'RemexHtml':
+                               $instance = new MediaWiki\Tidy\RemexDriver( $config );
+                               break;
                        case 'disabled':
                                return false;
                        default: