Declaration [src]

purple_uri_escape_for_open (
  const char* unescaped

Description [src]

This function escapes any characters that might be interpreted by the shell when executing a program to open a URI on some systems.

Available since:2.13.0


unescaped const char*

The unescaped URI.

 The data is owned by the caller of the function.
 The value is a NUL terminated UTF-8 string.

Return value

Returns: char*

A newly allocated string with any shell metacharacters replaced with their escaped equivalents.

 The caller of the function takes ownership of the data, and is responsible for freeing it.
 The value is a NUL terminated UTF-8 string.