mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-01-17 14:18:35 +01:00
Updated defaultLinkTo (markdown)
parent
5751b42654
commit
dfe2459376
@ -13,6 +13,11 @@ Returns a DOM object (even if provided a string).
|
||||
**Example**
|
||||
|
||||
```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, $this->getURI()); // Using bridge URL
|
||||
|
||||
// Output
|
||||
// <img src="https://www.github.com/rss-bridge/rss-bridge/blob/master/README.md">
|
||||
```
|
Loading…
x
Reference in New Issue
Block a user