From 4168f7aff52f6e7cf7320e42252227dac5169c4a Mon Sep 17 00:00:00 2001 From: Horus3 Date: Sun, 16 Nov 2014 21:20:41 +0100 Subject: Initial commit. --- linkshorter/functions.php | 58 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 linkshorter/functions.php (limited to 'linkshorter/functions.php') diff --git a/linkshorter/functions.php b/linkshorter/functions.php new file mode 100644 index 0000000..f6f021a --- /dev/null +++ b/linkshorter/functions.php @@ -0,0 +1,58 @@ + + + + + + Link Shorter + + + + + + + +
+
+ +
+
+
+ +
+
+ + +[^\S ]+/s', // strip whitespaces after tags, except space + '/[^\S ]+\', + '<', + '\\1' + ); + + $buffer = preg_replace($search, $replace, $buffer); + + return $buffer; +} -- cgit v1.2.3