[TYPO3-dev] HTMLcleaner wrongly cleans JavaScript

Ingmar Schlecht ingmar at typo3.org
Sat Aug 19 15:08:16 CEST 2006


Michael Stucki schrieb:
> Franz Holzinger wrote:
> 
>> during debugging of the reason why JavaScript generated in an extension
>> gets changed wrongly by TYPO3 before output, I came to the function
>> HTMLcleaner in class.t3lib_parsehtml.php.
>>
>> [...]
>>
>> What has been the intention of HTMLcleaner? Should it be able to handle
>> JavaScript code as well?
> 
> I guess not.
> 
> My proposed solution would be that you extract all CDATA parts before
> cleaning up (replace them with markers) and insert them back again.

Yes, good idea! Franz, could you do that?

cheers
Ingmar




More information about the TYPO3-dev mailing list