Convert URL to HTML link that opens in new tab
Arguments
- url
string that is URL
- text
string that is label
- newtab
unless set to FALSE, link opens in a new browser tab
- encode
unless set to FALSE, it uses
utils::URLencode()
first- reserved
if encode=T, this parameter is passed to
utils::URLencode()
Details
Consider also the golem utility enurl() as modified in this pkg, except that enurl()
does not make a link that would open in new tab,
skips
utils::URLencode()
andreturns "shiny.tag" class
now sets text=url, while url_linkify() uses a shorter text
enurl("https://google.com", "click here")
url_linkify("https://google.com")
enurl("https://google.com")
url_linkify("https://google.com", "click here")