title: how to remove HTML Tags from NSString in iphone?
body: <p>I am working Calendar functionality for my app requirement.IF i click today date or tomorrow date or some other date need to display auspicious details in <code>UITextview</code>.I have been trying to format a string in my text view but I cant work it out. Im very new to xcode.I want to remove <code>HTML</code> Tags in my stringResonse and display in <code>UITextview</code>.</p>
  
  <p>I am writing like this in my code:</p>
  
  <pre><code>-(void)connectionDidFinishLoading:(NSURLConnection *)connection
  
  {
  
  [UIApplication sharedApplication].networkActivityIndicatorVisible=NO;
  
  if(connection==urlConnection)
  
  {
  
  NSString *strResponse=[[NSString alloc]initWithData:responseData encoding:NSUTF8StringEncoding];
  
  NSLog(@"String Response is : %@",strResponse);
  
  NSMutableString *mutString=[NSMutableString string];
  
  NSString *s=nil;
  
  NSString *s1=nil;
  
  //NSArray *arr1=[strResponse componentsSeparatedByCharactersInSet:[NSCharacterSet characterSetWithCharactersInString:@"&lt;br&gt;"]];
  
  NSArray *arr2=[strResponse componentsSeparatedByString:@"\n"];
  
  NSLog(@"array %@",arr2);
  
  for(s in arr2)
  
  {
  
  s = [s stringByReplacingOccurrencesOfString: @"&lt;br&gt;" withString: @"\n"];
  
  s1=[s stringByReplacingOccurrencesOfString:@"&lt;font color&gt;" withString:@" "];
  
  [mutString appendString:@""];
  
  [mutString appendString:s1];
  
  }
  
  text1.text=[text1.text stringByAppendingString:mutString];
  
  }
  
  }
  
  - (void)viewDidLoad
  
  {
  
  [super viewDidLoad];
      // Do any additional setup after loading the view.
  
  strZone=[[NSString alloc]init];
  
  dict=[[NSDictionary alloc]init];
  
  text1=[[UITextView alloc]initWithFrame:CGRectMake(10, 280, 300, 120)];
  
  text1.font=[UIFont fontWithName:@"Helvetica" size:12];
  
  text1.font=[UIFont boldSystemFontOfSize:12];
  
  text1.backgroundColor=[UIColor whiteColor];
  
  text1.editable=NO;
  
  [self.view addSubview:text1];
  
  }
  </code></pre>
  
  <p>This is my string Response.  </p>
  
  <pre><code> S.Panchami 01.38&lt;br&gt;Arudra 02.01&lt;br&gt;V.08.54-10.39&lt;br&gt;D.05.02-06.52&lt;br&gt; &lt;font color=red&gt;&lt;u&gt;Festival&lt;/u&gt;&lt;/font&gt;&lt;br&gt;&lt;font color=blue&gt;Shankara Jayanthi&lt;br&gt;&lt;/font&gt;
  </code></pre>
  
  <p>But i want to display like this if user clicks date in calendar</p>
  
  <p>S.Panchami 01.38</p>
  
  <p>Arudra 02.01</p>
  
  <p>V.08.54-10.39</p>
  
  <p>D.05.02-06.52</p>
  
  <p>Festival</p>
  
  <p>Shankara Jayanthi</p>