{"action":"created","issue":{"url":"https://api.github.com/repos/vladimmi/gulp-js-html-inject/issues/2","labels_url":"https://api.github.com/repos/vladimmi/gulp-js-html-inject/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/vladimmi/gulp-js-html-inject/issues/2/comments","events_url":"https://api.github.com/repos/vladimmi/gulp-js-html-inject/issues/2/events","html_url":"https://github.com/vladimmi/gulp-js-html-inject/issues/2","id":106352118,"number":2,"title":"htmlMinify too aggressive, removes endtags","user":{"login":"bbottema","id":2115718,"avatar_url":"https://avatars.githubusercontent.com/u/2115718?v=3","gravatar_id":"","url":"https://api.github.com/users/bbottema","html_url":"https://github.com/bbottema","followers_url":"https://api.github.com/users/bbottema/followers","following_url":"https://api.github.com/users/bbottema/following{/other_user}","gists_url":"https://api.github.com/users/bbottema/gists{/gist_id}","starred_url":"https://api.github.com/users/bbottema/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bbottema/subscriptions","organizations_url":"https://api.github.com/users/bbottema/orgs","repos_url":"https://api.github.com/users/bbottema/repos","events_url":"https://api.github.com/users/bbottema/events{/privacy}","received_events_url":"https://api.github.com/users/bbottema/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-09-14T14:19:15Z","updated_at":"2015-09-14T18:48:32Z","closed_at":null,"body":"For empty end tags or implicit endings (`<tag></tag>` or `<tag />`), _htmlMinify_ tends to remove the ending, resulting in a missing end-tag (`<tag>` in both cases).\r\n\r\nDoes htmlMinify have options to turn off this behavior and is it possible to expose this option somehow in hulp-js-html-inject? Right now it is too aggressive."},"comment":{"url":"https://api.github.com/repos/vladimmi/gulp-js-html-inject/issues/comments/140172690","html_url":"https://github.com/vladimmi/gulp-js-html-inject/issues/2#issuecomment-140172690","issue_url":"https://api.github.com/repos/vladimmi/gulp-js-html-inject/issues/2","id":140172690,"user":{"login":"vladimmi","id":891830,"avatar_url":"https://avatars.githubusercontent.com/u/891830?v=3","gravatar_id":"","url":"https://api.github.com/users/vladimmi","html_url":"https://github.com/vladimmi","followers_url":"https://api.github.com/users/vladimmi/followers","following_url":"https://api.github.com/users/vladimmi/following{/other_user}","gists_url":"https://api.github.com/users/vladimmi/gists{/gist_id}","starred_url":"https://api.github.com/users/vladimmi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vladimmi/subscriptions","organizations_url":"https://api.github.com/users/vladimmi/orgs","repos_url":"https://api.github.com/users/vladimmi/repos","events_url":"https://api.github.com/users/vladimmi/events{/privacy}","received_events_url":"https://api.github.com/users/vladimmi/received_events","type":"User","site_admin":false},"created_at":"2015-09-14T18:48:32Z","updated_at":"2015-09-14T18:48:32Z","body":"Ok, I'll check it out to see if something can be changed. Can you please provide some tiny html code that is broken after using minifier to do tests?\r\n\r\nMy initial goal was to try to pack some large js project into single file (well, two - .js and .css) compressed as much as possible - that's why html minifier used when injecting html templates into scripts (to remove spaces, newlines, make attributes compact, etc). Then scripts itself are minified and compressed later at gulp.\r\n\r\nOn other side, just remove all newlines can broke html too - for example, they are important inside pre tags."}}