imgHandler function
Implementation
Object? imgHandler(Parser parser, Element source, {required String selectr}) {
Element? selector = source.querySelector(selectr);
if (selector != null) {
String? src = selector.attributes['src'];
if (src != null) {
return src.toString();
}
}
return null;
}