Updated defaultLinkTo (markdown)

LogMANOriginal 2019-05-02 21:05:43 +02:00
parent 5751b42654
commit dfe2459376

@ -13,6 +13,11 @@ Returns a DOM object (even if provided a string).
**Example** **Example**
```php ```php
$html = '<img src="/blob/master/README.md">';
$html = defaultLinkTo($html, 'https://www.github.com/rss-bridge/rss-bridge'); // Using custom server $html = defaultLinkTo($html, 'https://www.github.com/rss-bridge/rss-bridge'); // Using custom server
$html = defaultLinkTo($html, $this->getURI()); // Using bridge URL $html = defaultLinkTo($html, $this->getURI()); // Using bridge URL
// Output
// <img src="https://www.github.com/rss-bridge/rss-bridge/blob/master/README.md">
``` ```