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

具有最大行长度的{strip}模板函数

I have a large block of html text saved in the database, when I output this to the page and use {strip} its exceeding the Outlook line limit and breaking the HTML.

  1. In PHP what is the best performance way to echo a block of text ensuring its within a specified character width

  2. Is there a way to add this into the smarty {strip} function as a param: {strip length=1000}

The wordwrap() function does what you want in (1).

近期文章

  • PHP对象在另一个对象里面
  • 从现有数组创建一个新数组(php)
  • 它没有显示aantalkeermenu。 有人知道为什么吗?
  • 显示图像的文件名,不带扩展名作为标题
  • PDO多插入问题
  • 选定的查询结果放置在更多DIV中
  • 通过Javascript或PHP删除cookie
  • PHP echo中的奇怪字符导致无效的JSON
  • 使用表单帮助程序显示标记名称而不是ID
  • 我应该如何为Laravel中的多个中间表构建Eloquent ORM模型?
  • 从Smarty PHP循环(JQuery)中的select中获取选项值
  • max()的参数计数错误
  • 未定义的变量通过不检查
  • 从表中删除错误的记录
  • 在PHP中安装XDebug时遇到问题
  • 如何在zend分页中添加额外的参数
  • 如何在按钮点击时复制文件?
  • php模板和html整洁[关闭]
  • PHP Mysql_fetch_assoc正在省略最后一行
  • Twitter Bootstrap popovers无法在Wordpress循环中运行

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

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

友情链接:代码精华