定制 dgsiegel/kirby-tidy-html 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱: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,
    ],
];

统计信息

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

GitHub 信息

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

其他信息

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