PHP Classes

File: resources/Smarty/plugins/variablefilter.htmlspecialchars.php

Recommend this page to a friend!
  Classes of Yerfry Ramirez   Basic Controller Framework   resources/Smarty/plugins/variablefilter.htmlspecialchars.php   Download  
File: resources/Smarty/plugins/variablefilter.htmlspecialchars.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: Basic Controller Framework
Framework to route requests configured controllers
Author: By
Last change:
Date: 6 years ago
Size: 351 bytes
 

Contents

Class file image Download
<?php
/**
 * Smarty plugin
 *
 * @package Smarty
 * @subpackage PluginsFilter
 */

/**
 * Smarty htmlspecialchars variablefilter plugin
 *
 * @param string $source input string
 *
 * @return string filtered output
 */
function smarty_variablefilter_htmlspecialchars($source)
{
    return
htmlspecialchars($source, ENT_QUOTES, Smarty::$_CHARSET);
}