Format html code