toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case SanitizationWarningReason.disallowedElementRemoved:
      return 'DISALLOWED_ELEMENT_REMOVED';
    case SanitizationWarningReason.disallowedAttributeRemoved:
      return 'DISALLOWED_ATTRIBUTE_REMOVED';
    case SanitizationWarningReason.invalidAttributeValueRemoved:
      return 'INVALID_ATTRIBUTE_VALUE_REMOVED';
  }
}