lib/Caxy/HtmlDiff/Table/AbstractTableElement.php 1 location
|
@@ 46-52 (lines=7) @@
|
| 43 |
|
return $this->domNode->getAttribute($name); |
| 44 |
|
} |
| 45 |
|
|
| 46 |
|
public static function htmlFromNode($node) |
| 47 |
|
{ |
| 48 |
|
$domDocument = new \DOMDocument(); |
| 49 |
|
$newNode = $domDocument->importNode($node, true); |
| 50 |
|
$domDocument->appendChild($newNode); |
| 51 |
|
return trim($domDocument->saveHTML()); |
| 52 |
|
} |
| 53 |
|
} |
| 54 |
|
|
lib/Caxy/HtmlDiff/Table/TableDiff.php 1 location
|
@@ 698-705 (lines=8) @@
|
| 695 |
|
return $innerHtml; |
| 696 |
|
} |
| 697 |
|
|
| 698 |
|
protected function htmlFromNode($node) |
| 699 |
|
{ |
| 700 |
|
$domDocument = new \DOMDocument(); |
| 701 |
|
$newNode = $domDocument->importNode($node, true); |
| 702 |
|
$domDocument->appendChild($newNode); |
| 703 |
|
|
| 704 |
|
return trim($domDocument->saveHTML()); |
| 705 |
|
} |
| 706 |
|
|
| 707 |
|
protected function setInnerHtml($node, $html) |
| 708 |
|
{ |