0

Good morning,

I have variable with HTML code. For example:

{assign var="url" value="<a href='google.com'>URL</a>" nocache}

The next step is display the content.

{$url}

The result is:

<a href='google.com'>URL</a>

How to display the URL which will be a working link?

Kind regards

Nigel Ren
  • 56,122
  • 11
  • 43
  • 55
Jacek Nowak
  • 73
  • 1
  • 1
  • 4
  • Have a look at https://stackoverflow.com/questions/12351549/how-to-turn-off-html-escape-in-smarty, if it works then this can be marked as a dupe. – Nigel Ren Apr 20 '20 at 14:28

1 Answers1

0

The answer is to add nofilter parameters to variable:

{$url nofilter}

Jacek Nowak
  • 73
  • 1
  • 1
  • 4