dipeshsukhia / laravel-html-minify

laravel minify html output
MIT License
66 stars 22 forks source link

Particular Html #7

Closed Tjinatsu closed 2 years ago

Tjinatsu commented 2 years ago

Hello, can you teach me how to use "for particular html part", where should I put it? thanks.

dipeshsukhia commented 2 years ago

you can use it for particular Html part

LaravelHtmlMinifyFacade::htmlMinify("<div> Here is your HTML </div>");

you can also use include any blade file also within it

LaravelHtmlMinifyFacade::htmlMinify(@include('file'));