Function

Purplemarkup_linkify

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.

Parameters

str 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

Returns: 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.