The output loses colors (terminal escape characters are not interpreted). Check - https://github.com/pixelb/scripts/blob/master/scripts/ansi2html.sh -