original_string: protected function escape_url($url) {
          $url = str_replace('"', '%22', $url);
          $url = str_replace('\'', '%27', $url);
          $url = str_replace(' ', '%20', $url);
          $url = str_replace('<', '%3C', $url);
          $url = str_replace('>', '%3E', $url);
          return $url;
      }
code: protected function escape_url($url) {
          $url = str_replace('"', '%22', $url);
          $url = str_replace('\'', '%27', $url);
          $url = str_replace(' ', '%20', $url);
          $url = str_replace('<', '%3C', $url);
          $url = str_replace('>', '%3E', $url);
          return $url;
      }
code_tokens: protected function escape_url ( $ url ) { $ url = str_replace ( '"' , '%22' , $ url ) ; $ url = str_replace ( '\'' , '%27' , $ url ) ; $ url = str_replace ( ' ' , '%20' , $ url ) ; $ url = str_replace ( '<' , '%3C' , $ url ) ; $ url = str_replace ( '>' , '%3E' , $ url ) ; return $ url ; }
docstring: Escapes a url by replacing spaces with %20.
  
  Note: In general moodle does not automatically escape urls, but for the purposes of making this plugin more user friendly
  and make it consistent with some other areas in moodle (such as mod_url), urls will automatically be escaped.
  
  If moodle_url or PARAM_URL is changed to clean characters that need to be escaped, then this function can be removed
  
  @param string $url An unescaped url.
  @return string The escaped url
docstring_tokens: Escapes a url by replacing spaces with %20 .