<?php
/**
 * Smarty plugin
 *
 * @category Smarty
 * @license /_licenses/untermStrich/agb_normal.pdf
 * @author Christian Koller
 * @copyright 2009 untermStrich
 * @package Smarty
 * @subpackage plugins
 * @version $Id$
*/

/**
 * Smarty base64_encode function plugin
 *
 * Purpose: base64_encode the string
 *
 * @param   string  $string     The string to encode
 * @return  string  Encoded string
 */
function smarty_modifier_prep_pre_like($string)
{
    return str_replace('  ', '&nbsp; ', nl2br($string));
}

