,-)

    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

« JS из одного... || Случайное число. »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home