You're seeing ANSI escape sequences.
There's ansifilter
if you want to translate to plain text (strip escapes), HTML and some other (IIRC) formats.
There appears to be a Vim Script that appears to attempt something sensible with ANSI escapes here: