0

I have a list of HTML links (stored in OneNote 2016), and I want to convert them to text form, with both title and url. So for example, I want to convert

Super User

to

Super User: https://superuser.com

Or

- [Super User](https://superuser.com)

Is there a way to do so?

Ooker
  • 1,919
  • 2
  • 22
  • 46
  • I'm confused. Your first example `[Super User](https://superuser.com) ` is already in the right format? – DavidPostill Dec 15 '19 at 09:09
  • well, yes and no. Yes because it is stored in the HTML-supported editor, so it can be displayed like that. But when I want to copy it to a plain-text-only editor, I need to convert it to other forms. This can be easily done by hand for one or two links, but when it is a list, it's burdensome – Ooker Dec 15 '19 at 09:18
  • 3
    If you use notepad++ then they would be trivial regep search and replaces – DavidPostill Dec 15 '19 at 09:20

1 Answers1

1

Use Excel as a tool to get the list.

  1. Copy your original list from OneNote into the clipboard.
  2. Paste it into new Excel sheet, column A.
  3. Use an URL-extracting function to extract the URLs of links in column A into column B.
  4. Paste your sheet with columns A and B into your target text file. Done.
miroxlav
  • 13,008
  • 6
  • 65
  • 103