Compile html from array content