I have created a Rich Text
Editor in UIWebview. My requirement is to save this text in .doc word
file. How to achieve this. I am getting html content by using

NSString *strWebText = [webView stringByEvaluatingJavaScriptFromString:@"document.body.innerHTML"];

Now how can I proceed further to convert it in .doc format? Or is there
any javascript function to convert text or save text to .doc file?