Example #1
0
 function get_data($html, $host)
 {
     $this->data = FALSE;
     $parse = new parseMethod($html, $host);
     $html = $parse->getHTML();
     $method = $parse->getparseMethodNmae();
     if (!$method) {
         return FALSE;
     }
     $this->html_obj = str_get_html($html);
     $this->cleaner = new cleanDOM($this->html_obj);
     $this->{$method}();
     $this->html_obj->clear();
     unset($this->html_obj);
     $this->data['text'] = video_replace_lib::get_video_tags($this->data['text']);
     return $this->data;
 }
Example #2
0
 function get_data($html)
 {
     $html = $this->predParseHTML($html);
     $this->html_obj = str_get_html($html);
     if (!is_object($this->html_obj)) {
         return false;
     }
     $this->cleaner = new cleanDOM($this->html_obj);
     $this->parseDOM();
     $this->html_obj->clear();
     unset($this->html_obj);
     $this->data['text'] = video_replace_lib::get_video_tags($this->data['text']);
     return $this->data;
 }