Move xml to namespace

Relocate xml from include to src
Related to #3878
This commit is contained in:
Adam Magness 2017-11-10 00:00:50 -05:00
parent 037d6ac17b
commit f245bc8359
12 changed files with 5394 additions and 5137 deletions

View file

@ -6,10 +6,9 @@
namespace Friendica;
use Friendica\Core\Config;
use Friendica\Util\Xml;
use xml;
use dba;
use DomXPath;
use DOMDocument;
@ -204,17 +203,17 @@ class ParseUrl
$doc = new DOMDocument();
@$doc->loadHTML($body);
xml::deleteNode($doc, "style");
xml::deleteNode($doc, "script");
xml::deleteNode($doc, "option");
xml::deleteNode($doc, "h1");
xml::deleteNode($doc, "h2");
xml::deleteNode($doc, "h3");
xml::deleteNode($doc, "h4");
xml::deleteNode($doc, "h5");
xml::deleteNode($doc, "h6");
xml::deleteNode($doc, "ol");
xml::deleteNode($doc, "ul");
Xml::deleteNode($doc, "style");
Xml::deleteNode($doc, "script");
Xml::deleteNode($doc, "option");
Xml::deleteNode($doc, "h1");
Xml::deleteNode($doc, "h2");
Xml::deleteNode($doc, "h3");
Xml::deleteNode($doc, "h4");
Xml::deleteNode($doc, "h5");
Xml::deleteNode($doc, "h6");
Xml::deleteNode($doc, "ol");
Xml::deleteNode($doc, "ul");
$xpath = new DomXPath($doc);