Diff for phpPlatonLib/Platon/Platon.php between version 1.30 and 1.31
| version 1.30, 2005/02/01 16:51:11 |
version 1.31, 2005/02/19 11:33:46 |
|
|
| * @access public |
* @access public |
| */ |
*/ |
| |
|
| /* $Platon: phpPlatonLib/Platon/Platon.php,v 1.29 2004/12/31 16:03:27 nepto Exp $ */ |
/* $Platon: phpPlatonLib/Platon/Platon.php,v 1.30 2005/02/01 16:51:11 nepto Exp $ */ |
| |
|
| class Platon |
class Platon |
| { |
{ |
|
|
| return str_replace(' ', ' ', htmlspecialchars($str)); |
return str_replace(' ', ' ', htmlspecialchars($str)); |
| } /* }}} */ |
} /* }}} */ |
| |
|
| |
/* |
| |
* Replaces tilde with non-breaking space |
| |
* |
| |
* @param string $str input string |
| |
* @return string replaced string |
| |
*/ |
| |
function tilde_replace($str) /* {{{ */ |
| |
{ |
| |
$str = str_replace('/~', '/<TILDE>', $str); |
| |
$str = str_replace('~', ' ', $str); |
| |
$str = preg_replace('|<TILD[AE]?>|i', '~', $str); |
| |
return $str; |
| |
} /* }}} */ |
| |
|
| /** |
/** |
| * Computes MD5sum of file like `md5sum' command does it. |
* Computes MD5sum of file like `md5sum' command does it. |
| * |
* |
Platon Group <platon@platon.org> http://platon.org/
|
|