Exemple #1
0
 public function testCorrectedIso5()
 {
     $xml = '<h4>' . chr(191) . chr(208) . chr(239) . chr(219) . chr(208) . '</h4>';
     $imago = new Value($xml);
     $imago = new HtmlToDom($imago, ['encoding' => 'ISO-8859-5']);
     $doc = $imago->get();
     $this->assertEquals('Паяла', $doc->getElementsByTagName('h4')->item(0)->nodeValue);
 }
Exemple #2
0
 public function setUp()
 {
     $imago = new FileReader(__DIR__ . '/files/cities.html');
     $imago = new HtmlToDom($imago);
     $this->doc = $imago->get();
 }