[TYPO3-dev] Proper usage of lang::getLL()?
Steffen Kamper
info at sk-typo3.de
Thu Jul 16 12:09:16 CEST 2009
Hi,
Francois Suter schrieb:
> Hi all,
>
> Yesterday I committed a patch to the core which removed quite a few
> hardcoded labels. One thing kept me wondering: all calls to
> $GLOBALS['LANG]->getLL() use the second parameter set to "true". This
> will trigger a call to htmlspecialchars().
>
> As far as I could see most calls to lang:getLL() in the BE do not use
> this parameter set to true (actually it can be omitted and defaults to
> 0). And I don't think we really want to have htmlspecialchars() called
> on locallang labels, because it means we then cannot use any HTML markup
> in them.
>
> I'm ready to commit a follow-up patch removing this second parameter,
> but I thought I would ask for advice/opinions first.
>
isn't that also charset specific? Say, if i'm on utf-8 i don't need it
as i can use strings like "äöüß" direct, but if i'm on latin i would
need htmlspecialchars
HTML tags are used with htmlspecialchars already like <tag>
vg Steffen
More information about the TYPO3-dev
mailing list