diff options
author | Martin Fischer <martin@push-f.com> | 2023-08-11 21:25:21 +0200 |
---|---|---|
committer | Martin Fischer <martin@push-f.com> | 2023-08-19 06:41:55 +0200 |
commit | 83144505291319395c1ba40035cf933786bf3422 (patch) | |
tree | f7b9cb85c8000ab3690b1813e4ee0f020dba5873 /README.md | |
parent | 410bff8467a29eae8a7fba26176b8e8d25b734a2 (diff) |
break!: remove InfallibleTokenizer in favor of Iterator::flatten
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -13,7 +13,7 @@ use html5tokenizer::{Tokenizer, Token}; let html = "<title >hello world</title>"; let mut new_html = String::new(); -for token in Tokenizer::new(html).infallible() { +for token in Tokenizer::new(html).flatten() { match token { Token::StartTag(tag) => { write!(new_html, "<{}>", tag.name).unwrap(); |