pub fn replace_control_chars(s: &str) -> StringAvailable 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.