This should be executing Parser::tidy though, we're just using it through these settings in LocalSettings:
$wgUseTidy = true; $wgAlwaysUseTidy = false; $wgTidyBin = '/usr/local/bin/tidy'; $wgTidyConf = $IP.'/extensions/tidy/tidy.conf'; $wgTidyOpts = '';
but it's wrapping the content of the article in these tags:
<html> <head> <title>test</title> </head> <body> </body> </html>
Is there any reason why it would be generating these if it's being called from Parser::tidy?
Travis
On 5/11/07, Tim Starling tstarling@wikimedia.org wrote:
Travis Derouin wrote:
hi,
I've been using the external tidy and it seems with the tidy.conf in /extensions that a <body> tag is still generated and wrapped around the generated HTML of the article. Is there any way to avoid this?
Wrap the text in a valid document structure and then strip it after tidy completes. This is what Parser::tidy() does.
-- Tim Starling
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/wikitech-l