fix deprecation
This commit is contained in:
parent
9d49ec3972
commit
9d49ee0eae
@ -9,7 +9,7 @@ Future<String> dirtyString() async {
|
||||
// Extract words and their types
|
||||
final words = document.findAllElements('Word').map((element) {
|
||||
return {
|
||||
'word': element.text.trim(),
|
||||
'word': element.innerText.trim(),
|
||||
'type': element.getAttribute('type')!,
|
||||
};
|
||||
}).toList();
|
||||
|
Loading…
x
Reference in New Issue
Block a user