PHP Classes

File: src/voku/helper/HtmlMin.php

Recommend this page to a friend!
  Classes of Lars Moelleken  >  PHP HTML Minify Class  >  src/voku/helper/HtmlMin.php  
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
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 -> (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

You need to be a registered user and login to get this file.

Login Immediately with your account on:

For more information send a message to info at phpclasses dot org.