Skip to main content

has_content

Function has_content 

Source
pub fn has_content(text: &str) -> bool
Expand description

Check if text contains meaningful alphanumeric content.

Returns true if text contains at least one alphanumeric character.

ยงExample

use html_cleaning::text;

assert!(text::has_content("Hello"));
assert!(text::has_content("  123  "));
assert!(!text::has_content("  ...  "));
assert!(!text::has_content(""));