Function

Purplemarkup_linkify

since: 2.0

Declaration [src]

char*
purple_markup_linkify (
  const char* str
)

Description [src]

Adds the necessary HTML code to turn URIs into HTML links in a string.

Available since: 2.0

Parameters

str

Type: const char*

The string to linkify.

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

Return value

Type: char*

The new string with all URIs surrounded in standard HTML <a href=”whatever”></a> tags. You must g_free() this string when finished with it.

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.