We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
view-source example `
Why? Should be all in one line with no brakes, no?
The text was updated successfully, but these errors were encountered:
Same
Sorry, something went wrong.
the performance is minimal, does it still work?
This is a bug in the external Minify_HTML library: If You add this test to this class ...
<?php namespace Minify\Test; use Minify_HTML; class MinifyHTMLTest extends TestCase { public function test1() { } public function test2() { } public function tagProvider() { return [ ['<label for="email"></label>'], ['<input type="hidden">'], ]; } /** * @dataProvider tagProvider */ public function testNoNewLineAfterOpenTagName($htmlTag) { $actual = Minify_HTML::minify($htmlTag, array( 'cssMinifier' => array('Minify_CSSmin', 'minify'), 'jsMinifier' => array('JSMin\\JSMin', 'minify'), )); $this->assertEquals($htmlTag, $actual); } }
and change this line
$this->_html = preg_replace('/(<[a-z\\-]+)\\s+([^>]+>)/iu', "$1\n$2", $this->_html);
to this:
$this->_html = preg_replace('/(<[a-z\\-]+)\\s+([^>]+>)/iu', "$1 $2", $this->_html);
it will parse correctly (but probably something else will fail to work properly 😄 )
No branches or pull requests
view-source example
`
Why? Should be all in one line with no brakes, no?
The text was updated successfully, but these errors were encountered: