Hi Everyone
Escaping / encoding. It always confuses me.
I am writing $page->url()
and $file->url()
into my page header sharing meta tags. For example:
<meta property="og:image" content="<?php echo $image->url() ?>" />
I think I should be escaping / encoding the URL. I am escaping text added to the meta tags using ->escape()
. I cannot add this to $file->url()
.
I feel like this is a really dumb question, but hey …
How do I escape the URL? Do I need to escape the URL (or does Kirby do this already)?
Thank you
Regards
Mike