【发布时间】:2013-07-26 18:47:09
【问题描述】:
我有这个字符串
{{contact.info}}
值为:
name teste\nteste@teste.com.br\n(11) 11111-1111\n(0) 12312-3123\n(12) 12312-3123\n
在html中我想看:
name teste
teste@teste.com.br<br>
(11) 11111-1111
(10) 12312-3123
(12) 12312-3123
有什么办法吗?
【问题讨论】:
-
问题不在于模板,而在于 HTML 中的换行符没有任何作用......
-
有什么办法吗?
标签: python django twitter-bootstrap django-templates popover