This commit is contained in:
kodjomoustapha
2023-12-20 16:44:13 +01:00
parent d96362b48b
commit 5bf6411e51

View File

@@ -320,8 +320,8 @@ final String htmlString = '''
MDocument document = parseHtml(htmlString);
print(document.selecFirst("a").attr("href")); // https://github.com/kodjodevf
print(document.selecFirst("td").text); // 1
print(document.selectFirst("a").attr("href")); // https://github.com/kodjodevf
print(document.selectFirst("td").text); // 1
```
See [`MDocument` model](https://github.com/kodjodevf/mangayomi/blob/main/lib/eval/model/document.dart) and [`MElement` model](https://github.com/kodjodevf/mangayomi/blob/main/lib/eval/model/element.dart) to see aivable methods.