Diff
Logged in as anonymous

Differences From Artifact [80b8bebd72]:

To Artifact [132c411fd8]:


10
11
12
13
14
15
16
17

18
19
20
21
10
11
12
13
14
15
16

17
18
19
20
21







-
+




	let html = "<p>Some <b>valid</b> HTML</p>";
	let res = validate(html).stack()?;
	assert_eq!(res, html);
	Ok(())
}

#[test]
#[should_panic = "Found special tag while closing generic tag"]
#[should_panic = "Telegram closing tag found."]
fn check_invalid () {
	let html = "<p>Some <b>valid</b> HTML</p></code><a href='http://somewere.com'>Link injection!</a>";
	let _ = validate(html).unwrap();
}