stripAnsi function

String stripAnsi(
  1. String text
)

Remove ANSI escape codes from text.

Implementation

String stripAnsi(String text) {
  return text.replaceAll(_ansiRegex, '');
}