4 ms·
My preferred method is "html2haml < filename.html | haml". Doesn't care about document validity - just cleans up attributes and tag nesting/indentation. General
by cheald 16y ago
My preferred method is "html2haml < filename.html | haml". Doesn't care about document validity - just cleans up attributes and tag nesting/indentation. Generally speaking, I don't want the document corrected, just reformatted. Works for any XML, too, not just HTML.