Function script::xpath::eval_function::substring_before

source ยท
fn substring_before(s1: &str, s2: &str) -> String
Expand description

If s2 is found inside s1, return everything before s2. Return all of s1 otherwise.