Best way to parse a simple html text?

Discussion in 'iOS Programming' started by Clouds, May 26, 2011.

  1. macrumors newbie

    Joined:
    Oct 5, 2010
    #1
    Hi,
    I have a simple html/xml text like this:
    PHP:
    <script type="text/javascript">
    window.location.href="http://www.google.com?search=xxxxxx&d=yyyyy";
    </script>
    please tell me the best way to parse the link http://www.google.com?search=xxxxxx&d=yyyyy in that html text.
    Thank you!
     
  2. macrumors 6502a

    Joined:
    Apr 1, 2007
    #2
  3. macrumors 6502

    seepel

    Joined:
    Dec 22, 2009
    #3
    If you're sure that it will stay that simple NSXMLParser could work. If this is in a UIWebView you might be able to work some javascript magic...
     

Share This Page