diff --git a/libs/plugins/block.strip.php b/libs/plugins/block.strip.php
new file mode 100644
index 00000000..3d29f17f
--- /dev/null
+++ b/libs/plugins/block.strip.php
@@ -0,0 +1,30 @@
+
+ * Name: strip
+ * Purpose: strip unwanted white space from text
+ *
+ */
+function smarty_block_strip($params, $content, &$this)
+{
+ /* Reformat data between 'strip' and '/strip' tags, removing spaces, tabs and newlines. */
+ $_strip_search = array(
+ "![\t ]+$|^[\t ]+!m", // remove leading/trailing space chars
+ '%[\r\n]+%m'); // remove CRs and newlines
+ $_strip_replace = array(
+ '',
+ '');
+ return preg_replace($_strip_search, $_strip_replace, $content);
+}
+
+/* vim: set expandtab: */
+
+?>