[TYPO3-dev] javascript and escaping problem

Steffen Kamper steffen at dislabs.de
Wed Mar 7 01:27:22 CET 2007


I solved it, I had to remove all " from code.
I debugged tslib_fe and it was done by xhtml-cleaning. :bang:
anyway, this looks to me like a bug because result is disturbing any 
functionality.

"Steffen Kamper" <steffen at dislabs.de> schrieb im Newsbeitrag 
news:mailman.1.1173137035.16092.typo3-dev at lists.netfielders.de...
>
> "Steffen Kamper" <steffen at dislabs.de> schrieb im Newsbeitrag 
> news:mailman.1.1173121360.14321.typo3-dev at lists.netfielders.de...
>> Hi,
>>
>> i try to implement overlib boxes in FE from Extension.
>> So i have some rendered content in overlib with paragraphs,links etc.
>>
>> My biggest problem is to escape the " (quote)
>>
>> 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>
>>
>> I don't know what to do to get this out i put in. Please help me, i 
>> become desperate.
>> vg  Steffen
>>
>>
>
> to make it clear: i tried also with
> config {
>    xhtml_cleaning = 0

hmm - this setting did the whole thing. I set it to 0, but anyway it was in 
cache though hitting clear cache buttons.

>    admPanel = 0
>  }
> tt_content.20.parseFunc >
>
> you can see the output online:
> http://www.sk-typo3.de/index.php?id=284
>
> vg  Steffen

Now the result is without quotes
onmouseover="return overlib.ov('<h4>test</h4><p class=bodytext>07:00 
AM</p>...',STICKY, CAPTION, 'Title');"
and i ask myself, if this can be a valid html. All tries work with escaped 
quotes failed, may be this is an overlib-special, i have to dig deeper.

vg  Steffen 






More information about the TYPO3-dev mailing list