[TYPO3-mvc] linebreaks from locallang.xml

Tim Schoch | GSTALTIG tim.schoch at gstaltig.ch
Fri May 4 14:28:33 CEST 2012


CDATA is indeed helpfull if you need other html tags besides the br, but remember to add htmlExcape="false" to the translate 
viewhelper when using cdata. If your only after the <br>'s a simple line brake in your xml and {f:translate( key:'foo' ) -> f:format.nl2br()} will do the trick too and keep your xml pretty.
Tim


More information about the TYPO3-project-typo3v4mvc mailing list