PATH:
home
/
letacommog
/
crmleta
/
libraries
/
Smarty
/
libs
/
plugins
<?php /** * Smarty shared plugin * * @package Smarty * @subpackage PluginsShared */ if (version_compare(PHP_VERSION, '5.2.3', '>=')) { /** * escape_special_chars common function * * Function: smarty_function_escape_special_chars<br> * Purpose: used by other smarty functions to escape * special chars except for already escaped ones * * @author Monte Ohrt <monte at ohrt dot com> * @param string $string text that should by escaped * @return string */ function smarty_function_escape_special_chars($string) { if (!is_array($string)) { $string = htmlspecialchars($string, ENT_COMPAT, Smarty::$_CHARSET, false); } return $string; } } else { /** * escape_special_chars common function * * Function: smarty_function_escape_special_chars<br> * Purpose: used by other smarty functions to escape * special chars except for already escaped ones * * @author Monte Ohrt <monte at ohrt dot com> * @param string $string text that should by escaped * @return string */ function smarty_function_escape_special_chars($string) { if (!is_array($string)) { $string = preg_replace('!&(#?\w+);!', '%%%SMARTY_START%%%\\1%%%SMARTY_END%%%', $string); $string = htmlspecialchars($string); $string = str_replace(array('%%%SMARTY_START%%%', '%%%SMARTY_END%%%'), array('&', ';'), $string); } return $string; } } ?>
[+]
..
[-] modifiercompiler.indent.php
[edit]
[-] modifiercompiler.count_characters.php
[edit]
[-] function.html_select_time.php
[edit]
[-] function.html_image.php
[edit]
[-] shared.make_timestamp.php
[edit]
[-] modifiercompiler.to_charset.php
[edit]
[-] shared.mb_unicode.php
[edit]
[-] shared.literal_compiler_param.php
[edit]
[-] function.html_radios.php
[edit]
[-] outputfilter.trimwhitespace.php
[edit]
[-] modifiercompiler.unescape.php
[edit]
[-] modifier.escape.php
[edit]
[-] modifier.debug_print_var.php
[edit]
[-] function.html_select_date.php
[edit]
[-] modifiercompiler.count_sentences.php
[edit]
[-] shared.mb_str_replace.php
[edit]
[-] modifier.regex_replace.php
[edit]
[-] shared.mb_wordwrap.php
[edit]
[-] function.html_table.php
[edit]
[-] function.mailto.php
[edit]
[-] modifier.truncate.php
[edit]
[-] block.textformat.php
[edit]
[-] modifiercompiler.count_words.php
[edit]
[-] modifiercompiler.default.php
[edit]
[-] modifiercompiler.wordwrap.php
[edit]
[-] modifier.date_format.php
[edit]
[-] modifiercompiler.string_format.php
[edit]
[-] shared.escape_special_chars.php
[edit]
[-] variablefilter.htmlspecialchars.php
[edit]
[-] modifier.replace.php
[edit]
[-] modifiercompiler.noprint.php
[edit]
[-] function.math.php
[edit]
[-] function.html_checkboxes.php
[edit]
[-] modifiercompiler.strip.php
[edit]
[-] modifiercompiler.strip_tags.php
[edit]
[-] modifiercompiler.from_charset.php
[edit]
[-] modifiercompiler.count_paragraphs.php
[edit]
[-] function.counter.php
[edit]
[-] modifiercompiler.upper.php
[edit]
[-] modifiercompiler.lower.php
[edit]
[-] modifier.capitalize.php
[edit]
[-] function.cycle.php
[edit]
[-] modifier.spacify.php
[edit]
[-] function.fetch.php
[edit]
[-] function.html_options.php
[edit]
[-] modifiercompiler.escape.php
[edit]
[-] modifiercompiler.cat.php
[edit]