How can I convert url into text file?

Discussion in 'iOS Programming' started by iosmike, May 11, 2016.

  1. iosmike, May 11, 2016
    Last edited: May 11, 2016

    iosmike macrumors newbie

    iosmike

    Joined:
    Apr 28, 2016
    Location:
    Toronto, Canada
    #1
    In my app there is a webview. User can save any currenturl for later reading. And I have figured out how to save the webpage as text so users can review it when internet not available. But the problem is, how to get rid of all the <> tags ? I mean any web page.
     
  2. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #2
    HTML is a markup language. How do you want the text file to handle all the <> tags?
     
  3. iosmike thread starter macrumors newbie

    iosmike

    Joined:
    Apr 28, 2016
    Location:
    Toronto, Canada
    #3
    Thanks for your reply. I have figured out how to save as text but I found it is not a good idea because of the <> tags you mentioned? Maybe better solution is to convert into PDF?
     
  4. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #4
    What are you wanting to do with the saved webpage?
     
  5. iosmike thread starter macrumors newbie

    iosmike

    Joined:
    Apr 28, 2016
    Location:
    Toronto, Canada
    #5
    I want user can still read it when offline. Users can click url saved to review or the file saved when internet not available.
     
  6. AxoNeuron macrumors 65816

    AxoNeuron

    Joined:
    Apr 22, 2012
    Location:
    The Left Coast
    #6
    It really depends more on what types of websites you are looking to do this with.
     

Share This Page