parse static method

RssContent? parse(
  1. XmlElement? element
)

Implementation

static RssContent? parse(XmlElement? element) {
  if (element == null) {
    return null;
  }
  final content = element.text;
  final images = <String>[];
  _imagesRegExp.allMatches(content).forEach((match) {
    final matchGroup = match.group(1);
    if (matchGroup != null) images.add(matchGroup);
  });
  return RssContent(content, images);
}