toTextLines static method

List<String> toTextLines(
  1. String text
)

Implementation

static List<String> toTextLines(String text) {
  return text.replaceAll('\r\n', '\n').replaceAll('\r', '\n').split('\n');
}