1

I am using Zend Framework with PHPTAL templates for view sites.

Problem is that I have <span> that contains tal:content = value. Value is the field (string) from database which contains html tag <br/>. When I try to get this field from db, I don't get new line but hardcoded <br/> string.

Do you have some idea?

Martijn Pieters
  • 1,048,767
  • 296
  • 4,058
  • 3,343
wtomko
  • 35
  • 6

1 Answers1

1

PHPTAL automatically escapes all variables.

You need to use structure keyword to disable the escaping.

takeshin
  • 49,108
  • 32
  • 120
  • 164