use html_parser::{Dom, Result}; use indoc::indoc; use insta::assert_json_snapshot; #[test] fn it_can_parse_svg() -> Result<()> { let html = indoc!( r#" "# ); let dom = Dom::parse(html)?; assert_json_snapshot!(dom); Ok(()) } #[test] fn it_can_parse_complex_svg() { let svg = indoc!( r#" Sorry, your browser does not support inline SVG. "# ); assert!(Dom::parse(&svg).is_ok()); }