aboutsummaryrefslogtreecommitdiff
path: root/src/phinde/Helper.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/phinde/Helper.php')
-rw-r--r--src/phinde/Helper.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/phinde/Helper.php b/src/phinde/Helper.php
index 40ea751..312c5e5 100644
--- a/src/phinde/Helper.php
+++ b/src/phinde/Helper.php
@@ -30,5 +30,16 @@ class Helper
}
return 'http://' . $url;
}
+
+ public static function sanitizeTitle($str)
+ {
+ return trim(
+ str_replace(
+ array("\r", "\n", ' ', ' '),
+ array('', ' ', ' ', ' '),
+ $str
+ )
+ );
+ }
}
?>