diff --git a/src/Quotation/FixedQuotation.php b/src/Quotation/FixedQuotation.php index d3672626..c5fd9d27 100644 --- a/src/Quotation/FixedQuotation.php +++ b/src/Quotation/FixedQuotation.php @@ -107,9 +107,12 @@ private function quoteHtml(string $newHtml, string $originalHtml, string $header if ($removeItems instanceof \DOMNodeList) { /** @var \DOMElement $removeItem */ foreach ($removeItems as $removeItem) { - /** @var \DOMElement $parent */ - $parent = $removeItem->parentNode; - $parent->removeChild($removeItem); + try { + /** @var \DOMElement $parent */ + $parent = $removeItem->parentNode; + $parent->removeChild($removeItem); + } catch (\DOMException $e) { + } } }