Example #1
0
 /**
  * Initialize the filter, all inputs data must be encoded in UTF-8 before
  *
  * @access public
  * @param  string  $html      HTML content
  * @param  string  $website   Site URL (used to build absolute URL)
  */
 public function __construct($html, $website)
 {
     $this->input = XmlParser::HtmlToXml($html);
     $this->output = '';
     $this->tag = new Tag();
     $this->attribute = new Attribute(new Url($website));
 }