Function

Pidgintext_buffer_get_html_range

since: 3.0

Declaration [src]

char*
pidgin_text_buffer_get_html_range (
  GtkTextBuffer* buffer,
  GtkTextIter* start,
  GtkTextIter* end
)

Description [src]

Extracts the text between start and end from buffer as HTML. This will work with any GtkTextBuffer as it deciphers the tags it finds.

See also pidgin_text_buffer_get_html().

Available since: 3.0

Parameters

buffer

Type: GtkTextBuffer

The text buffer.

The data is owned by the caller of the function.
start

Type: GtkTextIter

The start iterator.

The data is owned by the caller of the function.
end

Type: GtkTextIter

The end iterator.

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.