diff options
author | thomasvl <thomasvl@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3> | 2008-02-01 20:16:57 +0000 |
---|---|---|
committer | thomasvl <thomasvl@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3> | 2008-02-01 20:16:57 +0000 |
commit | b3086cfd9aead0b2900c2d942b289957837286ab (patch) | |
tree | fde59e078122ee0edb021267088c8084314a07ce /Foundation/GTMNSString+XML.h | |
parent | 62301a30a8b6e9b71d3549178f89d62c8c3c7d48 (diff) |
- Fixed up the prefix header of the project and prefix handing in the Unittest
Xcode Config. (thanks schafdog)
- Fixed error in handling default compression for NSData+zlib
- Changed name on API in NSString+XML and added another api to make this a
litte more clear. (thanks Kent)
Diffstat (limited to 'Foundation/GTMNSString+XML.h')
-rw-r--r-- | Foundation/GTMNSString+XML.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/Foundation/GTMNSString+XML.h b/Foundation/GTMNSString+XML.h index ed2d161..6ef54d7 100644 --- a/Foundation/GTMNSString+XML.h +++ b/Foundation/GTMNSString+XML.h @@ -31,7 +31,19 @@ // Returns: // Autoreleased NSString // -- (NSString *)gtm_stringByEscapingForXML; +- (NSString *)gtm_stringBySanitizingAndEscapingForXML; + +/// Get a string where characters that invalid characters per the XML spec have been removed +// +/// This call removes all invalid characters as defined by Section 2.2 of the +/// xml spec. If you are writing XML yourself, you probably was to use the +/// above api (gtm_stringBySanitizingAndEscapingForXML) so any entities also +/// get escaped. +// +// Returns: +// Autoreleased NSString +// +- (NSString *)gtm_stringBySanitizingToXMLSpec; // There is no stringByUnescapingFromXML because the XML parser will do this. // The above api is here just incase you need to create XML yourself. |