View Single Post
Old 09-15-2022, 02:36 PM   #20
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,509
Karma: 8065348
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
What I understand is that you want a right-click option to copy the text in an unordered list of links. The URLs in the links don't need to do anything, and in fact it isn't clear what they could do.

You can easily achieve what you want by making the URL text be the value you want to copy. You would right-click on the value and choose "Copy link location", which will be the text. Clicking on the link will do nothing because they aren't in fact links.

This template does the job. It will work with any source column as long as you set the separator if needed. Hmmm -- there might be special characters that break URL parsing. The template takes care of quotes.

Code:
program:
	j = '';
	for i in $tags:
		j = j & '<li><a href="' & re(i, '"', '&quot;') & '">' & i & '</a></li>'
	rof;
	'<ul>' & j & '</ul>'
chaley is offline   Reply With Quote