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

getRawValue()没有格式化? Symfony的

for database i add text with html, for example:

<i>test test </i> <strong>test test</strong>

in template i use $text->getBody()->getRawValue() and i have formatted text:

test test test test

if i use only $text->getBody() then i have in template:

<i>test test </i> <strong>test test</strong>

how can i render text without getRawValue(), but i would like him without html tags strong, i etc. :

 test test test test

Are you after strip_tags()?

近期文章

  • 回声数组ISO-8859-1值正确
  • 用户点击时PHP提交按钮
  • PHP - “神奇变量值” - 酷还是傻瓜? [关闭]
  • 在codeigniter中重定向到引用URL
  • 用php逐条读取mysql中的数据报错为什么??
  • 如何正确设置页面结构
  • 使用AJAX更改PHP变量的值
  • 具有2048位和盐的哈希算法[重复]
  • .htaccess问题:未指定输入文件
  • 在foreach循环中使用PHP常量
  • 如何编写类似于$ _GET的函数?
  • 如何从php注册ejabberd用户?
  • 使用表A的内容更新表B?
  • php是否包含减少页面加载? [关闭]
  • PHP:在特定点之后插入html
  • 将此函数从php转换为ruby
  • PHP解释jQuery序列化数据
  • 在woocommerce中使用'post_type'=>'product'
  • 关于此脚本中使用的函数[关闭]
  • CakePHP excel下载故障排除

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

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

友情链接:代码精华