Adam Kowalski
Adam Kowalski

Reputation: 45

How to display smarty variable in tpl file

I have an array with value. But when I want to display I see the HTML elements. This is the output:

Array ( [content] =>

Jesteśmy profesjonalistami ...

When I use {$getContent['content']} or {$getContent.content} I see

<p>Jesteśmy profesjonalistami

How to display this value without HTML elements?

Upvotes: 1

Views: 1004

Answers (3)

Fizik26
Fizik26

Reputation: 839

Try with unescape:"htmlall"

=> {$getContent.content|unescape:"htmlall"}

Upvotes: 1

D Adams
D Adams

Reputation: 1

Another possibility would be {$getContent[content]}

Upvotes: 0

Adam Kowalski
Adam Kowalski

Reputation: 45

{$getContent.content nofilter}

Upvotes: 0

Related Questions