dgsiegel/kirby-tidy-html 问题修复 & 功能扩展

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

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

dgsiegel/kirby-tidy-html

最新稳定版本:1.0.0

Composer 安装命令:

composer require dgsiegel/kirby-tidy-html

包简介

Tidy HTML output for Kirby

README 文档

README

Tidy HTML output for Kirby

Installation

Requirements

You’ll need the PHP tidy extension installed and loaded. You can check whether this is the case with the following command:

php -r "var_dump(extension_loaded('tidy'));"

Installation with composer

composer require dgsiegel/kirby-tidy-html

Add as git submodule

git submodule add https://github.com/dgsiegel/kirby-tidy-html.git site/plugins/kirby-tidy-html

Download manually

Download and copy this repository to site/plugins/kirby-tidy-html.

Options

The default values of the package are:

Option Default Description
dgsiegel.kirby-tidy-html.enabled false Enable/disable tidy
dgsiegel.kirby-tidy-html.options [] Tidy options

Find all available Tidy options here: https://api.html-tidy.org/tidy/quickref_next.html

Usage

return [
    'dgsiegel.kirby-tidy-html.enabled' => true,
    'dgsiegel.kirby-tidy-html.options' => [
       'drop-empty-paras'    => 0,
       'indent'              => 2,
       'indent'              => 2,
       'indent-spaces'       => 2,
       'indent-spaces'       => 2,
       'output-html'         => 1,
       'preserve-entities'   => 1,
       'priority-attributes' => 'id, class, name, src, alt',
       'quote-ampersand'     => 0,
       'sort-attributes'     => 0,
       'vertical-space'      => 1,
       'wrap'                => 0,
    ],
];

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: GPL-3.0-or-later
  • 更新时间: 2023-12-13

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固