Removing blank spaces when parsing XML
Copy this code and paste it in your HTML
NSString *stringSpaces
= [[[NSString alloc
] initWithFormat
:@"%@",stringParsed
]autorelease
];
[stringSpaces stringByTrimmingCharactersInSet
:[NSCharacterSet whitespaceAndNewlineCharacterSet
]];
Report this snippet
Comments
Subscribe to comments