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

Function test_dehtml_html_encoded

src/dehtml.rs:508–517  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

506
507 #[test]
508 fn test_dehtml_html_encoded() {
509 let html = "<>"'& äÄöÖüÜß fooÆçÇ ♦‎‏‌&noent;‍";
510
511 let plain = dehtml(html).unwrap().text;
512
513 assert_eq!(
514 plain,
515 "<>\"\'& äÄöÖüÜß fooÆçÇ \u{2666}\u{200e}\u{200f}\u{200c}&noent;\u{200d}"
516 );
517 }
518
519 #[test]
520 fn test_unclosed_tags() {

Callers

nothing calls this directly

Calls 1

dehtmlFunction · 0.85

Tested by

no test coverage detected