1. Home
  2. Wordpress
  3. Escape url

esc_url is a function cleaning up a url. It escapes and cleans special characters.

#wordpress#php
esc_url('./some/url/to/escape.html');
copy
Full Wordpress cheatsheet