html-pretty-min icon indicating copy to clipboard operation
html-pretty-min copied to clipboard

Update PrettyMin.php

Open stemar opened this issue 6 years ago • 0 comments

Hello, I like your library, very useful for my project.

I was able to successfully indent all the nodes with spaces with this code patch. Otherwise, it's a mix of "\t" and spaces when I use:

$pm = new Wa72\HtmlPrettymin\PrettyMin(['indent_characters' => "    "]);
$output = $pm->load($html)->indent()->saveHtml();

I hope it's o.k. to suggest this code change. Thank you.

stemar avatar Oct 28 '19 05:10 stemar