File: |
src/voku/helper/HtmlMin.php |
Role: |
Class source |
Content type: |
text/plain |
Description: |
Class source |
Class: |
PHP HTML Minify Class
Compress HTML removing unnecessary data |
Author: |
By Lars Moelleken |
Last change: |
[+]: remove content before "<!doctype.*>", otherwise DOMDocument cannot handle the input
-> fix for issue #55
[+]: allow to configure special comments via "setSpecialHtmlComments()"
[+]: ignore false-positiv errors from phpstan
[+]: fix logic of detecting next sibling dom node v2
-> style + phpstan fixes
[+]: fix logic of detecting next sibling dom node
-> see isse #50
[+]: do not remove "</p>" if there is more content in the parent node
-> fix issue #50
[+]: update vendor + removing more default attributes
- add "doRemoveDefaultTypeFromButton()"
- add "doRemoveDefaultMediaTypeFromStyleAndLinkTag()"
- add "doRemoveDeprecatedTypeFromStyleAndLinkTag()"
- add "overwriteTemplateLogicSyntaxInSpecialScriptTags()"
- use a new version of "voku/simple_html_dom" (4.7.15)
[+]: add "isHTML4" + "isXHTML"
-> fix "remove deprecated script-mime-types"
[+]: change the api of some new functions
- use "localDomains" (string[]) instead of "localDomain" (string)
- use the same strange "do*"-naming as for all other methods :/
[+]: code style + phpdoc fixes
-> + use html5 short-syntax for "<optgroup>"
[+]: "keep prefix on non-resources + make domain local" v3.1
- remove setLocalDomain method
- method doMakeSameDomainLinksRelative accepts domain directly
- isDoMakeSameDomainLinksRelative set to false on empty $localDomain string
[+]: "keep prefix on non-resources + make domain local" v2.1
-> fix phpstan reported stuff
[+]: "keep prefix on non-resources + make domain local" v2
-> remove the "$_SERVER" usage -> https://github.com/kalessil/phpinspectionsea/issues/302 (security)
-> do not use regex if not needed (performance)
-> add some more test cases
fix setLocalDomain() method
keep prefix on non-resources + make domain local
|
Date: |
1 year ago |
Size: |
57,818 bytes |
|
|
|