convert js output to objective C
===

I am doing work on iphone app in which I have also used js as well as css files along with objective C to get better output. But at one point I stuck out. I am using the following js code which is showing the alert. I have attached the image also which is representing the alert by clicking on OK button. 


**NSString *someHtmlContent1 = @"<script src='jquery.min.js'></script><script src='jquery-ui.min.js'></script><script src='jquery.ui.touch-punch.min.js'></script><script>function result(qn) {        var u = document.getElementById('sortable'+qn);  var LIs = u.getElementsByTagName('li');        var list = [];    for( var i = 0; i < LIs.length; ++i ){   var LI = LIs[i];list.push(LI.innerHTML);        }  res = list;  var i=0; var str = '';for (i in res) {str = str+' '+res[i];}alert(str);return str;   }</script>";**

![enter image description here][1]




I want to get the content**(<span>.......</span>)** in NSString which is showing on alert. Anyone know that how to convert js variables to objective C? Please do help me.


Thanks to all.


  [1]: http://i.stack.imgur.com/pUJl2.png