Skip to content
New issue

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

It doesn't work with php embedded in script tags and minified css embedded in style tags #13

Open
jfoclpf opened this issue Dec 17, 2015 · 1 comment

Comments

@jfoclpf
Copy link

jfoclpf commented Dec 17, 2015

I cannot give you much information about the error, but I don't know what you may need. I use firebug. Did as you said (I have previously installed Minifier on the min folder), and it doesn't work. I have on my php file, minified css between <style> tags and javascript embedded with php between <script> tags. Like this it works:

@jfoclpf
Copy link
Author

jfoclpf commented Dec 17, 2015

    function sanitize_output($buffer) {
        require_once('min/lib/Minify/HTML.php');
        $buffer = Minify_HTML::minify($buffer);
        return $buffer;
    }
    ob_start('sanitize_output');

@jfoclpf jfoclpf changed the title It doesn't work It doesn't work with php embedded in script tags and minified css embedded in style tags Dec 17, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant