diff options
Diffstat (limited to 'src/phinde/Helper.php')
| -rw-r--r-- | src/phinde/Helper.php | 6 |
1 files changed, 6 insertions, 0 deletions
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( |
