Download the PHP package kevintweber/groundskeeper without Composer
On this page you can find all versions of the php package kevintweber/groundskeeper. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download kevintweber/groundskeeper
More information about kevintweber/groundskeeper
Files in kevintweber/groundskeeper
Download kevintweber/groundskeeper
More information about kevintweber/groundskeeper
Files in kevintweber/groundskeeper
Vendor kevintweber
Package groundskeeper
Short Description Groundskeeper will clean your weedy HTML.
License MIT
Homepage https://github.com/kevintweber/Groundskeeper
Package groundskeeper
Short Description Groundskeeper will clean your weedy HTML.
License MIT
Homepage https://github.com/kevintweber/Groundskeeper
Please rate this library. Is it a good library?
Informations about the package groundskeeper
Groundskeeper
Groundskeeper will clean your weedy HTML.
Install
Via Composer
Usage
Here is a simple example:
Options
clean-strategy
: Describes how the HTML document will be cleaned.- Options:
none
,lenient
,standard
,aggressive
; Default:standard
none
- No cleaning will be done.lenient
- Likestandard
except no markup will be removed.standard
- Standard compliant HTML will be output. Unfixable malformed HTML will be removed.aggressive
- Like "standard" plus non-standard elements will be removed. (TODO)
- Options:
element-blacklist
: Describes which elements will be removed from the output.- Options: Comma seperated list of elements; Default: `` (empty list)
indent-spaces
: The number of spaces for indentation when using pretty output.- Options: integer greater than or equal to 0; Default: 4
output
: Describes how the HTML will be output.- Options:
compact
,pretty
; Default:compact
compact
- Will remove all whitespace between elements, and will setindent-spaces
to 0.pretty
- One element per line with indentation. Handy for debugging.
- Options:
type-blacklist
: Describes which token types will be removed from the output.- Options: Comma seperated list of any of the following:
cdata
,comment
,doctype
,element
,php
,text
; Default:cdata,comment
- Options: Comma seperated list of any of the following:
Todo
- Implement cleaning strategy.
- output should inline certain elements.
- Add option to remove / sanitize all JS attributes.
Change log
Please see CHANGELOG for more information what has changed recently.
Testing
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Kevin Weber
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of groundskeeper with dependencies
PHP Build Version
Package Version
Requires
php Version
^5.5.9|^7.0
kevintweber/html-tokenizer Version ^0.3
psr/log Version ^1.0
symfony/options-resolver Version ^2.8|^3.0
kevintweber/html-tokenizer Version ^0.3
psr/log Version ^1.0
symfony/options-resolver Version ^2.8|^3.0
The package kevintweber/groundskeeper contains the following files
Loading the files please wait ....