mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-02 22:57:26 +02:00
Updated defaultLinkTo (markdown)
@@ -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">
|
||||||
```
|
```
|
Reference in New Issue
Block a user