Turn a group of lines into an HTML list