Convert ANSI escape code to HTML