MCPcopy Create free account
hub / github.com/chatmail/core / test_dehtml_bold_text

Function test_dehtml_bold_text

src/dehtml.rs:500–505  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

498
499 #[test]
500 fn test_dehtml_bold_text() {
501 let html = "<!DOCTYPE name [<!DOCTYPE ...>]><!-- comment -->text <b><?php echo ... ?>bold</b><![CDATA[<>]]>";
502 let plain = dehtml(html).unwrap().text;
503
504 assert_eq!(plain, "text *bold*<>");
505 }
506
507 #[test]
508 fn test_dehtml_html_encoded() {

Callers

nothing calls this directly

Calls 1

dehtmlFunction · 0.85

Tested by

no test coverage detected