diff --git a/src/html/parse.rs b/src/html/parse.rs
index 7bc1469..b418d9c 100644
--- a/src/html/parse.rs
+++ b/src/html/parse.rs
@@ -465,6 +465,46 @@ mod tests {
assert_tag(&result, key, "script", Some(attributes));
}
+ #[test]
+ fn parse_should_handle_text_with_triangle_brackets() {
+ // arrange
+ let html = r###"
foo > bar < baz
"###;
+
+ // act
+ let result = parse(html).unwrap();
+
+ // assert
+ //
+ let key = result.root_node;
+ let children = assert_tag(&result, key, "div", None);
+
+ //
-> -> text()
+ {
+ let key = children[0];
+ assert_text(&result, key, "foo > bar < baz");
+ }
+ }
+
+ #[test]
+ fn parse_should_include_tag_like_text_in_script_tags() {
+ // arrange
+ let html = r###""###;
+
+ // act
+ let result = parse(html).unwrap();
+
+ // assert
+ //