Welcome to mirror list, hosted at ThFree Co, Russian Federation.

modifier.unescape.php « SmartyPlugins « core - github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 971e9eabccc2a147038a3f103bf53344acb178fa (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
25
26
27
<?php
/**
 * Piwik - Open source web analytics
 *
 * @link http://piwik.org
 * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
 *
 * @category Piwik
 * @package SmartyPlugins
 */

/**
 * Smarty unescape modifier plugin
 *
 * Type:     modifier<br>
 * Name:     unescape<br>
 * Purpose:  Unescape the string
 * @param string $string
 * @param string $char_set
 * @return string
 */
function smarty_modifier_unescape($string, $char_set = 'UTF-8')
{
    return html_entity_decode($string, ENT_QUOTES, $char_set);
}

/* vim: set expandtab: */