Skip to content

Fix deprecated usage of html5tokenizer in html-comments #26

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions html-comments/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "html-comments"
version = "0.1.0"
edition = "2021"
authors = ["Mohamed Tarek @0xr00t3d"]
authors = ["Mohamed Tarek @pwnxpl0it"]
description = "Pulls out comments from html"
repository = "https://github.com/knassar702/hacks"
keywords = ["html-comments","htmlcomments","bugbounty"]
Expand All @@ -18,4 +18,4 @@ panic = "abort"
strip = true

[dependencies]
html5tokenizer = "0.4.0"
html5tokenizer = "=0.5.2"
4 changes: 2 additions & 2 deletions html-comments/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use std::io;
use html5tokenizer::{Tokenizer, Token};
use html5tokenizer::{NaiveParser, Token};

fn main() {
let mut html = String::from("");
Expand All @@ -14,7 +14,7 @@ fn main() {
}
}

for token in Tokenizer::new(html.as_str()).infallible(){
for token in NaiveParser::new(html.as_str()).flatten(){
match token{
Token::Comment(comment) => {
println!("{}",comment.replace("\n"," ").trim());
Expand Down
Loading