phpzend-frameworktemplate-talphptal

Using tal:content and getting <br/>


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?


Solution

  • PHPTAL automatically escapes all variables.

    You need to use structure keyword to disable the escaping.