update
This commit is contained in:
17
core/plugins/Smarty/modifier.strReplace.php
Normal file
17
core/plugins/Smarty/modifier.strReplace.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
/**
|
||||
* @author mago
|
||||
*/
|
||||
|
||||
function smarty_modifier_strReplace($string, $search, $replace) {
|
||||
|
||||
|
||||
$r = str_replace($search, $replace, $string);
|
||||
$r = str_replace("\n", "", $r);
|
||||
$r = str_replace("\r", "", $r);
|
||||
$r = str_replace("\r\n", "", $r);
|
||||
$r = str_replace("\r\m", "", $r);
|
||||
return $r;
|
||||
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user