summaryrefslogtreecommitdiff
path: root/smartyplugins/modifier.quoted.php
blob: a364f006cfda6eebed9a69e0fed6a9d93171a465 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php
namespace Bitweaver\Plugins;

/**
 * Smarty plugin
 * @package Smarty
 * @subpackage plugins
 */

/**
 * Smarty plugin
 * -------------------------------------------------------------
 * Type:     modifier
 * Name:     spacify
 * Purpose:  add spaces between characters in a string
 * -------------------------------------------------------------
 */
function smarty_modifier_quoted($string)
{
	$string = str_replace("\n","\n>",$string);
	return '>'.$string;
}

/* vim: set expandtab: */