thirdparty/htmlpurifier-4.0.0-lite/library/HTMLPurifier/ContentSets.php
protected function convertToLookup($string) {
        $array = explode('|', str_replace(' ', '', $string));
        $ret = array();
        foreach ($array as $i => $k) {
            $ret[$k] = true;
        }
        return $ret;
    }
protected function convertToLookup($string) {
        $array = explode('|', str_replace(' ', '', $string));
        $ret = array();
        foreach ($array as $i => $k) {
            $ret[$k] = true;
        }
        return $ret;
    }
protected function convertToLookup ( $ string ) { $ array = explode ( '|' , str_replace ( ' ' , '' , $ string ) ) ; $ ret = array ( ) ; foreach ( $ array as $ i => $ k ) { $ ret [ $ k ] = true ; } return $ ret ; }
Converts a string list of elements separated by pipes into
a lookup array.
@param $string List of elements
@return Lookup array of elements
Converts a string list of elements separated by pipes into a lookup array .