silverstripe-australia/silverstripe-cleancontent
Composer 安装命令:
composer require silverstripe-australia/silverstripe-cleancontent
包简介
Provides some user-configurable settings for whether content is 'cleaned'.
README 文档
README
A module that provides HTML Tidy and Purify capabilities
Note: This is the SS3 version of the module! Please checkout the ss24 branch for the SilverStripe 2.4 compatible version
Basic Usage
Add the module to your project, and add the appropriate extension to your data objects via your site's mysite/_config.php file
Object::add_extension('Page', 'CleanContentExtension');
You can have tidy/purify applied to Content fields when content is saved by selecting options on the Content / Cleaning tab, or use the $Clean(FieldName) option from your templates. Using $Clean on its own will by default use the Content field.
Note that for $Clean to work, you must still select the appropriate cleaning options on the Content / Clean tab.
By default, new pages have cleaning on save enabled, with HTML Tidy in effect, but not Purify. This can be changed by setting the statics in CleanContentExtension, which default as follows.
static $clean_on_save = true;
static $default_tidy = true;
static $default_purify = false;
Maintainer Contacts
- Marcus Nyeholt marcus@silverstripe.com.au
Requirements
- SilverStripe 2.4+
License
This module is licensed under the BSD license at http://silverstripe.org/BSD-license
This module makes use of the HTML Purifier library from http://htmlpurifier.org/ which is licensed under the Lesser GPL, a copy of which can be found at cleancontent/code/thirdparty/htmlpurifier-4.0.0-lite/LICENSE
Project Links
silverstripe-australia/silverstripe-cleancontent 适用场景与选型建议
silverstripe-australia/silverstripe-cleancontent 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 2.04k 次下载、GitHub Stars 达 7, 最近一次更新时间为 2015 年 05 月 15 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「utf8」 「silverstripe」 「HTMLtidy」 「purify」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 silverstripe-australia/silverstripe-cleancontent 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 silverstripe-australia/silverstripe-cleancontent 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 silverstripe-australia/silverstripe-cleancontent 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
htmLawed - Process text with HTML markup to make it more compliant with HTML standards and administrative policies
HTML Tidy middleware for Laravel
utf8 util
Removes invalid UTF-8 characters from the given text
Country Flag Emoji for PHP
统计信息
- 总下载量: 2.04k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 7
- 点击次数: 20
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2015-05-15