Example #1
0
 public static function fromString($input, $encoding = null, $html = false)
 {
     if ($html) {
         return HtmlElement::fromString($input, $encoding);
     }
     return Element::fromString($input, $encoding);
 }