MCPcopy Create free account
hub / github.com/AI45Lab/Code / test_html_to_text_entities

Function test_html_to_text_entities

core/src/tools/builtin/web_fetch.rs:176–180  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

174
175 #[test]
176 fn test_html_to_text_entities() {
177 let html = "foo & bar < baz > qux";
178 let text = html_to_text(html);
179 assert!(text.contains("foo & bar < baz > qux"));
180 }
181
182 #[test]
183 fn test_html_to_text_strips_script() {

Callers

nothing calls this directly

Calls 1

html_to_textFunction · 0.85

Tested by

no test coverage detected