Function

Pidgintext_buffer_get_html

since: 3.0

Declaration [src]

char*
pidgin_text_buffer_get_html (
  GtkTextBuffer* buffer
)

Description [src]

Extracts text from buffer as HTML.

This will work with any GtkTextBuffer as it deciphers the tags it finds.

This is the same as calling pidgin_text_buffer_get_html_range() with the start and end iterators of buffer.

See also pidgin_text_buffer_get_html_range().

Available since: 3.0

Parameters

buffer

Type: GtkTextBuffer

The text buffer.

The data is owned by the caller of the function.

Return value

Type: char*

The HTML string, which could be empty.

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.