From 50fe9414579e430c502e31ef92e3459450ac1078 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Thu, 9 Mar 2017 10:18:12 +1100 Subject: [PATCH] Add RemexHtml to the list of available Tidy drivers Change-Id: I5a87a6ed24ca3ef7c5fdb21e74f9eb410bf74b4c --- includes/DefaultSettings.php | 3 ++- includes/parser/MWTidy.php | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index c4833660d8..7fe7c60ea9 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -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 diff --git a/includes/parser/MWTidy.php b/includes/parser/MWTidy.php index 5e5461587b..01bf2d0d65 100644 --- a/includes/parser/MWTidy.php +++ b/includes/parser/MWTidy.php @@ -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: -- 2.20.1