mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2024-11-25 02:46:15 +03:00
Updated defaultLinkTo (markdown)
parent
5751b42654
commit
dfe2459376
1 changed files with 5 additions and 0 deletions
|
@ -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…
Reference in a new issue