serhatozles/yii2-htmlawed 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

serhatozles/yii2-htmlawed

Composer 安装命令:

composer require serhatozles/yii2-htmlawed

包简介

htmLawed

README 文档

README

See: http://www.bioinformatics.org/phplabware/internal_utilities/htmLawed/more.htm

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist serhatozles/yii2-htmlawed "*"

or add

"serhatozles/yii2-htmlawed": "*"

to the require section of your composer.json file.

Usage

Once the extension is installed, simply use it in your code by :

$in = ' <div>
<div>
<table
border="1"
style="background-color: red;">
<tr>    <td>A    cell</td><td colspan="2" rowspan="2">
<table border="1" style="background-color: green;"><tr><td>Cell</td><td colspan="2" rowspan="2"></td></tr><tr><td>Cell</td></tr><tr><td>Cell</td><td>Cell</td><td>Cell</td></tr></table>
</td></tr>
<tr><td>Cell</td></tr><tr><td>Cell</td><td>Cell</td><td>Cell</td></tr></table></div></div> ';

$out = serhatozles\htmlawed\htmLawed::htmLawed($in, array('tidy'=>'1')); 
echo $out;

统计信息

  • 总下载量: 12
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-3.0
  • 更新时间: 2014-12-04