Diff for phpPlatonLib/Platon/Platon.php between version 1.36 and 1.37
| version 1.36, 2006/07/08 19:57:04 |
version 1.37, 2007/02/01 18:11:23 |
|
|
| * @access public |
* @access public |
| */ |
*/ |
| |
|
| /* $Platon: phpPlatonLib/Platon/Platon.php,v 1.33 2005/11/07 23:21:17 nepto Exp $ */ |
/* $Platon: phpPlatonLib/Platon/Platon.php,v 1.36 2006-07-08 19:57:04 nepto Exp $ */ |
| |
|
| class Platon |
class Platon |
| { |
{ |
|
|
| $str = preg_replace('/</i', '<', $str); |
$str = preg_replace('/</i', '<', $str); |
| $str = preg_replace('/"/i', '\'', $str); |
$str = preg_replace('/"/i', '\'', $str); |
| $str = preg_replace('/&/i', '&', $str); |
$str = preg_replace('/&/i', '&', $str); |
| |
// do also reverse of Platon::htmlspecialchars2() |
| |
$str = preg_replace('/ /i', ' ', $str); |
| return $str; |
return $str; |
| } /* }}} */ |
} /* }}} */ |
| |
|
Platon Group <platon@platon.org> http://platon.org/
|
|