replaceNewline static method

String replaceNewline(
  1. String value
)

Implementation

static String replaceNewline(String value) {
  return value.replaceAll('\n', newLineReplacePattern);
}