Skip to main content

replace_once

Function replace_once 

Source
pub fn replace_once(html: &str, from: &str, to: &str) -> Option<String>
Expand description

Replace the first occurrence of from with to (case-sensitive).