[TYPO3-mvc] FLUIDTEMPLATE and htmlentities
Armin Rüdiger Vieweg
armin.vieweg at diemedialen.de
Fri Apr 8 12:04:32 CEST 2011
Hello,
I've got a question about the cObject FLUIDTEMPLATE:
Since 4.5. I use the new FLUIDTEMPLATE cObject, instead of TEMPLATE. But
if I define a variables {main_navigation} for example, and fill it with an
HMENU, TYPO3 outputs escaped html-code (php method: htmlentities();)
I'll get this: <ul id="mainnavigation">
instead of this: <ul id="mainnavigation">
To fix it I have written a viewhelper which perfoms an html_entity_decode:
<v:entityDecode>{main_navigation}</v:entityDecode>
This works fine, but it is a little bit circular just to output raw html
code, cause viewhelpers have to be included inside of an extension.
Exists an easier way? Or a possibility to disable htmlentities() in fluid?
Thanks and best regards
Armin
More information about the TYPO3-project-typo3v4mvc
mailing list