Skip to main content

normalize_value

Function normalize_value 

Source
pub fn normalize_value(text: &str) -> String
Expand description

WHATWG header value normalization (WPT headers-normalize): strip leading/trailing SP/HTAB, drop bare CR/LF, and treat an obs-fold (CRLF + SP/HTAB) as a single space; runs of inner whitespace collapse to the last one seen.