Remove URL text if it contains the URL
Compare changes
+ 9
− 3
@@ -3,6 +3,7 @@
@@ -3,6 +3,7 @@
@@ -67,9 +68,14 @@ trait LinkRemoverTrait {
@@ -67,9 +68,14 @@ trait LinkRemoverTrait {
array_reduce(iterator_to_array($element->childNodes), fn(string $carry, \DomNode $child) => $carry . $dom->saveXML($child), '')