unstable since: 1.0

Declaration [src]

valent_string_to_markup (
  const char* text

Description [src]

Add markup to text for recognized elements.

This function currently scans for URLs and e-mail addresses, then amends each element with anchor tags (<a>).

If text is NULL, this function will return NULL.

Available since: 1.0



Type: const char*

Input text.

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

Return value

Type: char*

A string of Pango markup.

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