Function

Purplestrdup_withhtml

since: 2.0

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.

Available since: 2.0

Parameters

src

Type: 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

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