unEscapeMp function

String unEscapeMp(
  1. String s, {
  2. dynamic strings,
})

Unescapes the following HTML entities in the given htmlString argument: & < > " '

Implementation

String unEscapeMp(String s, {strings}) {
  if (strings.runtimeType == String) {
    return _htmlUnescape(strings);
  }

  var output = strings[0];
  if (strings.runtimeType == List) {
    for (var index = 0; index <= (strings as List).length; index++) {
      output = output + _htmlEscape(strings[index] + strings[index + 1]);
    }
  }

  return output;
}