--- /dev/null
+<?php
+/**
+ * Smarty plugin
+ * @package Smarty
+ * @subpackage plugins
+ */
+
+
+/**
+ * Shortcut to the Smarty escape modifier plugin
+ *
+ * Type: modifier<br>
+ * Name: h<br>
+ */
+function smarty_modifier_h($string, $esc_type = 'html', $char_set = 'ISO-8859-1')
+{
+ return smarty_modifier_escape($string,'html','UTF-8');
+}
+
+/* vim: set expandtab: */
+
+?>
--- /dev/null
+<?php
+/**
+ * Smarty plugin
+ * @package Smarty
+ * @subpackage plugins
+ */
+
+
+/**
+ * Smarty plugin
+ *
+ * Type: modifier
+ * Name: noteparser
+ * Date: 2007-06-19
+ * Purpose: Add the http:// protocol if missing
+ * Example: {$foo|http}
+ * @author Andreas Gohr <gohr@cosmocode.de>
+ * @param string
+ * @return string
+ */
+function smarty_modifier_http($string){
+ if(!$string) return '';
+
+ if(!preg_match('#^\w+://#',$string)){
+ $string = 'http://'.$string;
+ }
+
+ return $string;
+}
+
+/* vim: set expandtab: */
+
+?>