Escaping / encoding. It always confuses me.
I am writing
$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
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)?