开发者

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.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜