voku / HtmlMin

:clamp: HtmlMin: HTML Compressor and Minifier via PHP

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

paquette-codes opened this issue · comments

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>