voku / HtmlMin

:clamp: HtmlMin: HTML Compressor and Minifier via PHP
MIT License
161 stars 22 forks source link

removing end head tag </head> from file... #96

Open paquette-codes opened 10 months ago

paquette-codes commented 10 months ago

What is this feature about (expected vs actual behaviour)?

when using $html->minify($htmlstring) and/or with other methods, it keep removing the tag from the string... resulting on a wrong html structure.

How can I reproduce it?

try this html:

<!DOCTYPE html>
<html lang="en">
<head>
    <title></title>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
this is a test
</body>
</html>