improve code reuse
improve code reuse

DChristiany/html-minifier,kangax/html-minifier,AshKyd/html-minifier,AshKyd/html-minifier,kangax/html-minifier,kangax/html-lint,DChristiany/html-minifier,kangax/html-lint