#include <libppbase/base/XML.h>
Static Public Member Functions | |
static String | escapeHTML (const String &str, bool crlf=false) |
Escapes a string. | |
static String | escape (const char *str, unsigned int length) |
Escapes a string. | |
static String | decode (const String &str) |
Decodes an XML-encoded string. |
XML helper functions.
Decodes an XML-encoded string.
str | the XML-encoded string |
static String base::XML::escape | ( | const char * | str, | |
unsigned int | length | |||
) | [static] |
Escapes a string.
Escaping escapes special characters '<', '>', '&' and '"' and removes all non-whitespace control characters
str | the string to escape | |
length | string length |
Escapes a string.
Escaping escapes special characters '<', '>', '&' and '"' and removes all non-whitespace control characters
str | the string to escape | |
crlf | flag: change line breaks to ' ' |