From: Tim Starling Date: Wed, 8 Mar 2017 23:18:12 +0000 (+1100) Subject: Add RemexHtml to the list of available Tidy drivers X-Git-Tag: 1.31.0-rc.0~3837^2 X-Git-Url: http://git.cyclocoop.org/%40spipnet%40?a=commitdiff_plain;h=50fe9414579e430c502e31ef92e3459450ac1078;p=lhc%2Fweb%2Fwiklou.git Add RemexHtml to the list of available Tidy drivers Change-Id: I5a87a6ed24ca3ef7c5fdb21e74f9eb410bf74b4c --- 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: