On 24/11/2008, at 6:54 PM, Jean-Daniel Dupas wrote:
Hello, what's the best way to remove html tags and javascript from
a NSString?
(I'm working on a web crawler and I'm needing a way to get the
contents of a page that doesn't have a description on it.)
Thanks,
Mr. Gecko
Just a suggestion:
loading it in a WebView and retreiving the page text content.
Or you can use one of the various -initWithHTML methods of
NSAttributedString and then just ask for the -string value.
--
Rob Keniger
_______________________________________________
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [EMAIL PROTECTED]