A better asHTML method