[Typo3-dev] Turn off Tidy with TS
Olray Dragon
olray-dragon at allanime.org
Thu Aug 4 17:26:43 CEST 2005
While I very strongly want to disencourage making changes to the TYPO3
core system, it's the only way to turn off tidy for a single page type.
Get in your favorite text editor and open the file tslib/class.tslib_fe.php
Search for a line:
function tidyHTML($content) {
Change the FOLLOWING line to:
if ($this->TYPO3_CONF_VARS['FE']['tidy'] &&
$this->TYPO3_CONF_VARS['FE']['tidy_path'] && t3lib_div::_GET('type')
!= 99) {
This will turn off tidy for all pages with &type=99 in the URL.
Please note, the first TYPO3 update will overwrite this change.
Olray
Oliver Krammer schrieb:
> Hi Masi
>
>
>>What are these problems? Perhaps the issue can be solved without turning
>>tidy off for all page types.
>
> The problem is that Tidy wraps a header a round the plain text.
>
> Like this:
> <html xmlns="http://www.w3.org/1999/xhtml">
> <head>
> <title></title>
> </head>
>
> <body>
> ### Here goes the plain text ####
> </body>
> </html>
>
>
> And this is not really plain text.
>
> Greetinx Oliver
>
More information about the TYPO3-dev
mailing list