Replaces root-relative URLs inside HTML attributes (e.g. href
and src
) with absolute URLs. This is most often used in RSS feeds and other places where markup may be consumed off the domain.
I had this totally <a href="/dreams/spiders-with-ramen-legs">crazy dream</a> last night and I know you want to hear all about it!
{{ content | full_urls }}
{!! Statamic::modify($content)->fulLUrls() !!}
I had this totally <a href="https://example.com/dreams/spiders-with-ramen-legs">crazy dream</a> last night and I know you want to hear all about it!