定制 hiraeth/htmlpurifier 二次开发

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

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

hiraeth/htmlpurifier

Composer 安装命令:

composer require hiraeth/htmlpurifier

包简介

HTMLPurifier for the Hiraeth Nano-Framework

README 文档

README

HTMLPurifier is a robust and highly configurable filter for HTML content to ensure security and cleanliness of user inputted HTML.

Installation

composer require hiraeth/htmlpurifier

The htmlpurifier.jin configuration will be automatically copied to your config directory via opus.

Delegates

Operative Class Operative Intefaces Provides
HTMLPurifier Class Only Configuration for common HTMLPurifier settings

Providers

No providers are included in this package.

Configuration

; The location to store serialized purifier information.  This is essentially a cache.

cache_path = writable/cache/htmlpurifier

; Whether or not we should remove empty elements.  Note that if this is set to true, elements
; containing only non-breaking space characters will also be removed.

remove_empty = true

; Whether or not the HTML we're purifying should be considered trusted.

trusted = false

; Forbidden HTML (attributes, elements, classes)

forbidden = {
	"attributes": [],
	"elements": [],
	"classes": []
}

Usage

See the HTMLPurifier documentation for more information on what how to use the purifier. Additional configuration will be normalized with time. If you have specific requests, please submit an issue or pull request.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-08-01

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固