diff --git a/bridges/ReporterreBridge.php b/bridges/ReporterreBridge.php index f88d6d2..b0dfb30 100644 --- a/bridges/ReporterreBridge.php +++ b/bridges/ReporterreBridge.php @@ -18,6 +18,12 @@ class ReporterreBridge extends BridgeAbstract{ } $html2->clear(); unset ($html2); + + // Replace all relative urls with absolute ones + $text = preg_replace('/(href|src)(\=[\"\'])(?!http)([^"\']+)/ims', "$1$2" . $this->getURI() . "$3", $text); + + $text = strip_tags($text, '


'); + return $text; }