Date: 11/29/07 (Code WTF) Keywords: html
class SomeClass {
...
function _NormalizeString($string) {
$string = (isset($this->needToStripTags) && $this->needToStripTags) ? strip_tags($string) : $string;
$string = stripslashes($string);
if ($this->_needToConvert) {
$string = strtr($string, $this->_htmlEsc);
$string =
$string = strtr($string, array_flip($this->_htmlEsc));
}
return $string;
}
}
Source: http://community.livejournal.com/code_wtf/116304.html
|