()
| 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() { |