Declaration [src]

purple_markup_escape_text (
  const gchar* text,
  gssize length

Description [src]

Escapes special characters in a plain-text string so they display correctly as HTML. For example, & is replaced with &amp; and < is replaced with &lt;

This is exactly the same as g_markup_escape_text(), except that it does not change ‘ to &apos; because &apos; is not a valid HTML 4 entity, and is displayed literally in IE7.


text const gchar*

The text to escape.

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

The length of the text, or -1 if NULL terminated.

Return value

Returns: gchar*
  No description available.
 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.