You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
final doc =parse('<p>Some text</p><p>Some more text</p>');
print(doc.querySelector('body')?.text);
// 'Some textSome more text'
Granted, trying to get an accurate representation of pure text is a bit non-sensical, but I think we should get as close as possible. Here, having a second getter that keeps as many return to line as needed to be a bit more accurate would be welcome.
My precise need is word-count in a reading app.
Edit : this would be similar to the output of javascript's innerText.
The text was updated successfully, but these errors were encountered:
Granted, trying to get an accurate representation of pure text is a bit non-sensical, but I think we should get as close as possible. Here, having a second getter that keeps as many return to line as needed to be a bit more accurate would be welcome.
My precise need is word-count in a reading app.
Edit : this would be similar to the output of javascript's
innerText
.The text was updated successfully, but these errors were encountered: