Skip to main content

normalize_space

Function normalize_space 

Source
pub fn normalize_space(value: &str) -> String
Expand description

Normalize whitespace in a string (XPath fn:normalize-space).

  • Strips leading and trailing whitespace
  • Replaces sequences of whitespace with a single space

§Arguments

  • value - The string to normalize

§Returns

The normalized string.