script::xpath::eval_function

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.