ansifilter – ANSI control sequence converter

ansifilter – ANSI control sequence converter

This handy utility is useful for when you need to convert some text with ANSI control sequences into plain text or some other format, like HTML.   While there, also have a look at highlight script.