Convert html to slim