; docformat = 'rst' ;+ ; Replace special characters in the input string using the %xx escape codes. ; ; :TODO: ; currently only replaces spaces ; ; :Returns: ; string ; ; :Params: ; s : in, required, type=string ; string to quote ;- function mg_urlquote, s compile_opt strictarr return, mg_streplace(s, ' ', '%20', /global) end