extract method
Process input
and extract necessary data.
- Note: the output is usually passed to the next
extractor
in the chain.
Implementation
@override
List extract(dynamic input) {
final rootElement = HtmlUtils.formatInputElement(input);
selectMatchingElements(rootElement).forEach((element) {
element.replaceWith(HtmlUtils.cloneWithName(element, renameTo));
});
return [rootElement];
}