Convert ANSI color codes into HTML <span> tags