开发者

Using tal:content and getting <br/>

开发者 https://www.devze.com 2023-03-26 22:33 出处:网络
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 c

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号