I need to expose a new function here as ngSanitize is an own module and does not have access to the angular core internal function `urlResolve`, which is needed to match against the whitespace regexes.