[TYPO3] ATagTitle output -> " instead of "

JoH info at cybercraft.de
Fri Mar 10 01:23:58 CET 2006


>> however the quotes in  20.value = " onClick="close()   are
>> transformed into ".
>> that is why the a-tag looks like that: <A>... title="page  &quot;
>> onClick=&quot;close()"...
>>
>> i can't use ATagParams...
>> is there a way to output " instead of &quot;
>
> Erm...an onclick event is not going to work inside a title attribute.
> What are you actually trying to do? It's simple enough to keep Typo3
> from converting characters to html entities:
>
> ### See TSref stdWrap section for more info:
>
http://typo3.org/documentation/document-library/references/doc_core_tsref/current/view/5/1/
> ###
> temp = TEXT
> temp {
>   value = "This sentence is quoted"
>   htmlSpecialChars = 0
> }
>
> But what you're trying to do looks bizarre...

It might look like that but when you take a closer look you will notice what
this workaround is going to do ...
ATagParams hasn't got stdWrap properties but ATagTitle has.
So the workaround is to close the title with " and then add another
Parameter for the A-Tag.

This string

" onClick="close()

would be inserted between the "" of the title Tag giving you

title ="" onclick="close()"

Unfortunately every value for the attribute section is parsed with
htmlspecialchars and this seems to be hardcoded in PHP.
So no htmlSpecialChars = 0 possible here.

It was just an idea - and I remember it has been working with older versions
of TYPO3.
So it seems he will need another workaround.

Joey

-- 
Wenn man keine Ahnung hat: Einfach mal Fresse halten!
(If you have no clues: simply shut your knob sometimes!)
Dieter Nuhr, German comedian
openBC: http://www.cybercraft.de





More information about the TYPO3-english mailing list