| @@ 219-225 (lines=7) @@ | ||
| 216 | ||
| 217 | $tmpDomOuterTextString = $this->normalizeStringForComparision($newDocument); |
|
| 218 | $tmpStr = $this->normalizeStringForComparision($string); |
|
| 219 | if ($tmpDomOuterTextString !== $tmpStr) { |
|
| 220 | throw new \RuntimeException( |
|
| 221 | 'Not valid HTML fragment!' . "\n" |
|
| 222 | . $tmpDomOuterTextString . "\n" . |
|
| 223 | $tmpStr |
|
| 224 | ); |
|
| 225 | } |
|
| 226 | ||
| 227 | $newDocument = $this->cleanHtmlWrapper($newDocument, true); |
|
| 228 | $ownerDocument = $this->node->ownerDocument; |
|
| @@ 206-212 (lines=7) @@ | ||
| 203 | ||
| 204 | $tmpDomOuterTextString = $this->normalizeStringForComparision($newDocument); |
|
| 205 | $tmpStr = $this->normalizeStringForComparision($string); |
|
| 206 | if ($tmpDomOuterTextString !== $tmpStr) { |
|
| 207 | throw new \RuntimeException( |
|
| 208 | 'Not valid HTML fragment!' . "\n" |
|
| 209 | . $tmpDomOuterTextString . "\n" . |
|
| 210 | $tmpStr |
|
| 211 | ); |
|
| 212 | } |
|
| 213 | ||
| 214 | $ownerDocument = $this->node->ownerDocument; |
|
| 215 | if ( |
|