[TYPO3-dev] HTMLcleaner wrongly cleans JavaScript

Michael Stucki michael at typo3.org
Tue Aug 15 10:06:03 CEST 2006


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.

- michael
-- 
Use a newsreader! Check out
http://typo3.org/community/mailing-lists/use-a-news-reader/




More information about the TYPO3-dev mailing list