Function

Purplestrdup_withhtml

Declaration [src]

gchar*
purple_strdup_withhtml (
  const gchar* src
)

Description [src]

Duplicates a string and replaces all newline characters from the source string with HTML linebreaks.

Parameters

src const gchar*
 

The source string.

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

Return value

Returns: gchar*
 

The new string. Must be g_free’d by the caller.

 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.