我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

symfony twig html标签</ div>

I'm fairly new with twig, so I'm having a little trouble. How add tag to end of variable name?

{{ item.description|raw'</div>' }} 

is correct?

description is with html tags

I think the best way is to add your tag out from twig:

{{ item.description|raw }}</div>

However, you could use concatenation:

{{ (item.description ~ '</div>')|raw }}

近期文章

  • PHP Sum of Mysql行值
  • 根据它们是否为0或1来制作两个表
  • 在php二维数组中找到元素的官方方法?
  • 注意:未定义索引:在C:\ xampp \ htdocs \ cars \ index1.php中的elegido在线
  • 如何防止img拉伸其父级
  • PHP添加到模数
  • 自动批量文件下载的最佳方法
  • 如何在php中使用.txt扩展创建随机文件名?
  • 提交后我可以隐藏表格吗?
  • 仅适用于单个帖子的风格
  • 使用stdClass对象循环访问php数组
  • 获取所有Magento类别的名称
  • mysqli函数返回没有值
  • PHP没有插入表格
  • 结合关联数组php
  • mysql插入查询的优化代码
  • 难以从MySQL中按升序显示数据
  • 将stdClass对象转换为多维数组
  • $ _SERVER ['SERVER_ADDR']不等于真实服务器IP地址
  • 如果任何这些变量为空,则运行语句

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华