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