Function

Purplemarkup_get_tag_name

Declaration [src]

char*
purple_markup_get_tag_name (
  const char* tag
)

Description [src]

Returns a newly allocated string containing the name of the tag located at “tag”. Tag is expected to point to a ‘<’, and contain a ‘>’ sometime after that. If there is no ‘>’ and the string is not NUL terminated, this function can be expected to segfault.

Parameters

tag const char*
 

The string starting a HTML tag.

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

Return value

Returns: char*
 

A string containing the name of the tag.

 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.