X-Git-Url: https://git.cweiske.de/phinde.git/blobdiff_plain/9d97bab663adb122d6edf7c15639a3457e94c71f..8b9ae4fc9a3f8402001dd1a054658d5e1246efff:/src/phinde/Helper.php diff --git a/src/phinde/Helper.php b/src/phinde/Helper.php index 43345ba..8e30a19 100644 --- a/src/phinde/Helper.php +++ b/src/phinde/Helper.php @@ -31,6 +31,12 @@ class Helper return 'http://' . $url; } + public static function removeAnchor($url) + { + $parts = explode('#', $url, 2); + return $parts[0]; + } + public static function sanitizeTitle($str) { return trim(