PHP Classes

File: libs/smarty/plugins/variablefilter.htmlspecialchars.php

Recommend this page to a friend!
  Classes of Ali Sharifi   MVC 4 Dummies   libs/smarty/plugins/variablefilter.htmlspecialchars.php   Download  
File: libs/smarty/plugins/variablefilter.htmlspecialchars.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: MVC 4 Dummies
Web development PHP MVC framework
Author: By
Last change:
Date: 9 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);
}