[TYPO3-english] htmlspecialchars encoding in menuitems
Xavier Perseguers
typo3 at perseguers.ch
Thu Jan 8 23:02:23 CET 2009
Andreas Burg wrote:
> Stephan,
>
>>>> i have a menuitem in a TMENU "Blues / R&B"
>>>> the "&" doesn't get encoded (into &) what can i do?
>
>> yeah, but i dont see why links are not generated automatically like
>> the should if i set doctype to xhtml_trans.
>
> AFAIK a "&" in text is not invalid xhtml, only in link parameters.
No! There is perhaps some weird things with HTML but when dealing with
XML documents (XHTML is XML) then the "&" is *always* introducing an
entity and as such cannot be left empty and *must* be written &
Test it yourself on http://validator.w3.org/check if you do not believe
this.
--
Xavier Perseguers
http://xavier.perseguers.ch/en
One contribution a day keeps the fork away
More information about the TYPO3-english
mailing list