()
| 164 | |
| 165 | #[test] |
| 166 | fn test_html_to_text_basic() { |
| 167 | let html = "<p>Hello <b>world</b></p>"; |
| 168 | let text = html_to_text(html); |
| 169 | assert!(text.contains("Hello")); |
| 170 | assert!(text.contains("world")); |
| 171 | assert!(!text.contains("<p>")); |
| 172 | assert!(!text.contains("<b>")); |
| 173 | } |
| 174 | |
| 175 | #[test] |
| 176 | fn test_html_to_text_entities() { |
nothing calls this directly
no test coverage detected