Takes a list of tasks in JSON and converts them to HTML for display or print.