Converts text containing terminal escape codes into markup
