MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / test_html_escape

Function test_html_escape

atomic-core/src/diff/inline.rs:1107–1112  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1105
1106 #[test]
1107 fn test_html_escape() {
1108 assert_eq!(html_escape("hello"), "hello");
1109 assert_eq!(html_escape("<script>"), "&lt;script&gt;");
1110 assert_eq!(html_escape("a & b"), "a &amp; b");
1111 assert_eq!(html_escape("\"quoted\""), "&quot;quoted&quot;");
1112 }
1113
1114 // Helper function tests
1115

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected