[TYPO3-dev] javascript and escaping problem

Franz Holzinger franz at fholzinger.com
Tue Mar 6 22:46:28 CET 2007


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






More information about the TYPO3-dev mailing list