diff -r a659e18d8adf -r 94151c4d26b5 libpurple/purplemarkup.h --- a/libpurple/purplemarkup.h Wed Oct 25 18:51:32 2023 -0500 +++ b/libpurple/purplemarkup.h Wed Oct 25 18:53:43 2023 -0500 @@ -40,7 +40,10 @@ * @dest_plain: The destination plain-text output. * * Converts HTML markup to XHTML. + * + * Since: 2.0.0 */ +PURPLE_AVAILABLE_IN_ALL void purple_markup_html_to_xhtml(const char *html, char **dest_xhtml, char **dest_plain); @@ -52,7 +55,10 @@ * * Returns: The new string without HTML. You must g_free this string * when finished with it. + * + * Since: 2.0.0 */ +PURPLE_AVAILABLE_IN_ALL char *purple_markup_strip_html(const char *str); /** @@ -64,7 +70,10 @@ * Returns: The new string with all URIs surrounded in standard * HTML <a href="whatever"></a> tags. You must g_free() * this string when finished with it. + * + * Since: 2.0.0 */ +PURPLE_AVAILABLE_IN_ALL char *purple_markup_linkify(const char *str); /** @@ -102,7 +111,10 @@ * * Returns: The text with HTML entities literalized. You must g_free * this string when finished with it. + * + * Since: 2.0.0 */ +PURPLE_AVAILABLE_IN_ALL char *purple_unescape_html(const char *html); /** @@ -125,7 +137,10 @@ * work out any problems encountered. * * Returns: The HTML slice of string, with all formatting retained. + * + * Since: 2.0.0 */ +PURPLE_AVAILABLE_IN_ALL char *purple_markup_slice(const char *str, guint x, guint y); /** @@ -138,7 +153,10 @@ * not NUL terminated, this function can be expected to segfault. * * Returns: A string containing the name of the tag. + * + * Since: 2.0.0 */ +PURPLE_AVAILABLE_IN_ALL char *purple_markup_get_tag_name(const char *tag); /** @@ -157,7 +175,10 @@ * return a newly allocated string. * * Returns: A constant string containing the character representation of the given entity. + * + * Since: 2.0.0 */ +PURPLE_AVAILABLE_IN_ALL const char * purple_markup_unescape_entity(const char *text, int *length); G_END_DECLS