PHP Classes

File: system/dependencies/smarty/plugins/variablefilter.htmlspecialchars.php

Recommend this page to a friend!
  Classes of Dimitri Sitchet   dFramework   system/dependencies/smarty/plugins/variablefilter.htmlspecialchars.php   Download  
File: system/dependencies/smarty/plugins/variablefilter.htmlspecialchars.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: dFramework
Framework to build PHP applications
Author: By
Last change:
Date: 4 years ago
Size: 451 bytes
 

Contents

Class file image Download
<?php
/**
 * Smarty plugin
 *
 * @package Smarty
 * @subpackage PluginsFilter
 */
/**
 * Smarty htmlspecialchars variablefilter plugin
 *
 * @param string $source input string
 * @param \Smarty_Internal_Template $template
 *
 * @return string filtered output
 */
function smarty_variablefilter_htmlspecialchars($source, Smarty_Internal_Template $template)
{
    return
htmlspecialchars($source, ENT_QUOTES, Smarty::$_CHARSET);
}