Convert ANSI-decorated console output to HTML
ansi2html is a Python library and command line utility for convering text with ANSI color codes to HTML or LaTeX.
ansi2html