stripAnchor

Strips the anchor (fragment) from a URL string.

Return

a pair of the base URL and the anchor, or null if no anchor is present