From 87d7e8507a4a41c4e0d7a4f2d54fe48f3a6f72cb Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 22 Jan 2013 22:32:17 +0400 Subject: split some more functions from functions.php --- include/rssfuncs.php | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include/rssfuncs.php') diff --git a/include/rssfuncs.php b/include/rssfuncs.php index b20c7958c..8500df0df 100644 --- a/include/rssfuncs.php +++ b/include/rssfuncs.php @@ -1287,4 +1287,11 @@ return ""; } + + function make_guid_from_title($title) { + return preg_replace("/[ \"\',.:;]/", "-", + mb_strtolower(strip_tags($title), 'utf-8')); + } + + ?> -- cgit v1.2.3