replaceList method

String replaceList(
  1. List<String> from,
  2. String replace
)

Implementation

String replaceList(List<String> from, String replace) {
  String newString = this;

  for (String _from in from) {
    newString = newString.replaceAll(_from, replace);
  }

  return newString;
}