Mercurial > pidgin
comparison src/util.h @ 10732:c4cb90065e1d
[gaim-migrate @ 12334]
"gaim_escape_html (according to Ethan) predates
g_markup_escape_text. Current code in Gaim uses both
functions. This patch removes gaim_escape_html from the
API and replaces all calls in the Gaim tree with
g_markup_escape_text. I included a ChangeLog.API note.
As far as I can tell, this still works perfectly.
This is obviously intended for HEAD only, as it removes a
public function." --rlaager
this was discussed extensively this morning
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Sat, 26 Mar 2005 02:43:49 +0000 |
parents | 0f5c5e6fb27f |
children | 3e43c132f151 |
comparison
equal
deleted
inserted
replaced
10731:783ca1f1ebdb | 10732:c4cb90065e1d |
---|---|
284 * @return The linkified text. | 284 * @return The linkified text. |
285 */ | 285 */ |
286 char *gaim_markup_linkify(const char *str); | 286 char *gaim_markup_linkify(const char *str); |
287 | 287 |
288 /** | 288 /** |
289 * Escapes HTML special characters to be displayed literally. | |
290 * For example '&' is replaced by "&" and so on | |
291 * | |
292 * @param html The string in which to escape any HTML special characters | |
293 * | |
294 * @return the text with HTML special characters escaped | |
295 */ | |
296 char *gaim_escape_html(const char *html); | |
297 | |
298 /** | |
299 * Unescapes HTML entities to their literal characters. | 289 * Unescapes HTML entities to their literal characters. |
300 * For example "&" is replaced by '&' and so on. | 290 * For example "&" is replaced by '&' and so on. |
301 * Actually only "&", """, "<" and ">" are currently | 291 * Actually only "&", """, "<" and ">" are currently |
302 * supported. | 292 * supported. |
303 * | 293 * |