feat continue with xml uncorrect content

parent a2397baf
Pipeline #1691 passed with stage
in 4 minutes and 47 seconds
......@@ -55,6 +55,27 @@ class Workflow
$id,
$directory = null
) {
$source = file_get_contents($directory . DIRECTORY_SEPARATOR . $id . '.xml');
$source = str_replace(" "," ",$source);
$source = str_replace("é", "e",$source);
$source = str_replace("è","e",$source);
$source = str_replace("ê","e",$source);
$source = str_replace("à","a",$source);
$source = str_replace("â","a",$source);
$source = str_replace("î","i",$source);
$source = str_replace("ô","o",$source);
$source = str_replace("û","u",$source);
$source = str_replace("´","",$source);
$source = str_replace("°","o",$source);
$source = str_replace("’", "'",$source);
unlink($directory . DIRECTORY_SEPARATOR . $id . '.xml');
$fp = fopen($directory . DIRECTORY_SEPARATOR . $id . '.xml', 'a');
fwrite($fp, $source);
fclose($fp);
parent::load($directory . DIRECTORY_SEPARATOR . $id . '.xml');
$this->XPath = new DOMXPath($this);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment