Mercurial > pidgin
comparison libpurple/util.h @ 26987:cd78ea46e9bd
merge of '7c614b09b72037ebd86c03fbbeac7794a155547b'
and 'af18689b86389686230fc6ce83cbba52690ce0cb'
| author | Paul Aurich <paul@darkrain42.org> |
|---|---|
| date | Sat, 30 May 2009 00:32:50 +0000 |
| parents | ab31daf1c1ee |
| children | f303787f144d |
comparison
equal
deleted
inserted
replaced
| 26986:42bff519973b | 26987:cd78ea46e9bd |
|---|---|
| 494 * string when finished with it. | 494 * string when finished with it. |
| 495 */ | 495 */ |
| 496 char *purple_markup_linkify(const char *str); | 496 char *purple_markup_linkify(const char *str); |
| 497 | 497 |
| 498 /** | 498 /** |
| 499 * Unescapes HTML entities to their literal characters. | 499 * Unescapes HTML entities to their literal characters. Also translates |
| 500 * "<br>" to "\n". | |
| 500 * For example "&" is replaced by '&' and so on. | 501 * For example "&" is replaced by '&' and so on. |
| 501 * Actually only "&", """, "<" and ">" are currently | 502 * Actually only "&", """, "<" and ">" are currently |
| 502 * supported. | 503 * supported. |
| 503 * | 504 * |
| 504 * @param html The string in which to unescape any HTML entities | 505 * @param html The string in which to unescape any HTML entities |
| 505 * | 506 * |
| 506 * @return The text with HTML entities literalized. You must g_free | 507 * @return The text with HTML entities literalized. You must g_free |
| 507 * this string when finished with it. | 508 * this string when finished with it. |
| 509 * | |
| 510 * @see purple_escape_html | |
| 508 */ | 511 */ |
| 509 char *purple_unescape_html(const char *html); | 512 char *purple_unescape_html(const char *html); |
| 510 | 513 |
| 511 /** | 514 /** |
| 512 * Returns a newly allocated substring of the HTML UTF-8 string "str". | 515 * Returns a newly allocated substring of the HTML UTF-8 string "str". |
