From 88c741c09b664260f826ff947bfaab071ac70d05 Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Wed, 3 Feb 2016 21:12:17 +0100 Subject: add site search, highlighting --- src/phinde/Helper.php | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/phinde/Helper.php') diff --git a/src/phinde/Helper.php b/src/phinde/Helper.php index 4863961..0b98521 100644 --- a/src/phinde/Helper.php +++ b/src/phinde/Helper.php @@ -11,5 +11,14 @@ class Helper } return true; } + + public static function noSchema($url) + { + return str_replace( + array('http://', 'https://'), + '', + $url + ); + } } ?> -- cgit v1.2.3