Function
Purplemarkup_get_tag_name
since: 2.0
[−]
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.
Available since: 2.0
[−]
Parameters
tag
-
Type:
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
Type: 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. |