[TYPO3-dev] javascript and escaping problem

Steffen Kamper steffen at dislabs.de
Tue Mar 6 23:23:42 CET 2007


"Franz Holzinger" <franz at fholzinger.com> schrieb im Newsbeitrag 
news:mailman.1.1173217589.6355.typo3-dev at lists.netfielders.de...
> Hello Steffen,
>
>>>> example content :
>>>> <p class="bodytext">...</p>
>>>> Now I have to escape, i use t3lib_div::slashJS.
>>>> The rendered content looks ok, it gives me
>>>> <p class=\"bodytext\">...</p>
>>>>
>>>> but ... in FE Output I have something like this:
>>>> <p class="\\" bodytext="">...</p>
>>>>
>
> Where is the JavaScript?
>
> I have solved a similar problem in displaying JavaScript content in FE:
>
> tt_products/control/class.tx_ttproducts_javascript.php
>
> tx_ttproducts_javascript::
>
> function jsspecialchars($s)
>
> - Franz
>
>
Hi Franz,

the Problem is that the Javascript is inline (onmousover:"...")
Something in FE-Output makes reformatting that doesn't work.
Go to my online example and look to source ;-)
http://www.sk-typo3.de/index.php?id=284

vg  Steffen 






More information about the TYPO3-dev mailing list