Tony Toro
Tony Toro

Reputation: 29

TYPO3templating and html tag

I made site package, on TYPO3, by by official documentations, everything ok, but only one small problem, when I watch the pages on the browser, I see the HTML TAGs, I have not answer, I tried already done package, same problem.... what to do??

HTML TAGS on Templates TYPO3

Backend content (1)

Backend content (2)

File HTML to view content

DynamicContent

Upvotes: 0

Views: 192

Answers (1)

Bernd Wilke πφ
Bernd Wilke πφ

Reputation: 10800

This always happens when you prepare HTML into a fluid-variable and output that variable directly.

In your case you do not assign to a variable, but you output the result from the viewhelper, which contains HTML-markup, directly.

To avoid that the HTML-markup is shown (escaped) you need to use an additional viewhelper: f:format.raw

either:

<f:format.raw><f:cObject typoscriptObjectPath="..." data="..."/></f:format.raw>

or:

{f:cObject(typoscriptObjectpath:'...', data:'...')->f:format.raw()}

Upvotes: 1

Related Questions