PageRenderTime 14ms CodeModel.GetById 11ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/framework/vendor/smarty3/lib/libs/plugins/variablefilter.htmlspecialchars.php

http://zoop.googlecode.com/
PHP | 21 lines | 6 code | 2 blank | 13 comment | 0 complexity | 320c819d38ce776d54007ba5663e83c2 MD5 | raw file
 1<?php
 2/**
 3* Smarty plugin
 4* 
 5* @package Smarty
 6* @subpackage PluginsFilter
 7*/
 8
 9/**
10* Smarty htmlspecialchars variablefilter plugin
11* 
12* @param string $source input string
13* @param object $ &$smarty Smarty object
14* @return string filtered output
15*/
16function smarty_variablefilter_htmlspecialchars($source, $smarty)
17{
18    return htmlspecialchars($source, ENT_QUOTES);
19} 
20
21?>