15 lines
397 B
PHP
15 lines
397 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
function smarty_modifier_sanitize_input($string, $esc_type = 'html', $charset='UTF-8')
|
||
|
|
{
|
||
|
|
$string = mb_ereg_replace("'","'", $string);
|
||
|
|
$string = mb_ereg_replace('"',""", $string);
|
||
|
|
$string = mb_ereg_replace('<',"<", $string);
|
||
|
|
$string = mb_ereg_replace('>',">", $string);
|
||
|
|
$string = mb_ereg_replace('<br/>',"<br>", $string);
|
||
|
|
return $string;
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
?>
|