Html page extract links - bash

I’ve done months of research into this topic. I convert my bookmarks into a html page. Then, I’ve used various methods, one successful. I lost the file I originally that had info that worked. So, I have to start over looking.

It must hold the full link, not highest level. Also, correct for % space type items, spaces in lines corrected by websites.

cat bookmarks.html | tr ‘"’ ‘\n’ | tr “'” ‘\n’ | grep -e ‘^https://’ -e ‘^http://’ -e’^//’ | sort | uniq
seems to work, I have check it against the bookmark links.

I need a method that can fit on one bash command line. Preferred, “title line\n hyperlink”.

Thanks…