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?
PHPTAL automatically escapes all variables.
You need to use structure keyword to disable the escaping.
精彩评论