[TYPO3-dev]  Proper usage of lang::getLL()?
    Francois Suter 
    fsu-lists at cobweb.ch
       
    Thu Jul 16 12:01:39 CEST 2009
    
    
  
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.
Cheers
-- 
Francois Suter
Cobweb Development Sarl - http://www.cobweb.ch
    
    
More information about the TYPO3-dev
mailing list