replace_control_chars

Function replace_control_chars 

Source
pub fn replace_control_chars(s: &str) -> String
Available on crate feature scraper only.
Expand description

Remove non-printable control characters from JSON text.

Rationale: some sites return JSON with illegal control characters surrounding it. Cleaning prior to parsing improves compatibility while not affecting preservation of raw text.