How to encapsulate a link inside a string on Apps script?

94 views
Skip to first unread message

Kumar Shuvam

unread,
Oct 14, 2021, 1:52:52 PM10/14/21
to Google Apps Script Community
How to encapsulate a link inside a string on Apps script?

Alan Wells

unread,
Oct 14, 2021, 2:30:21 PM10/14/21
to Google Apps Script Community
var html,link, parentFolderID;

parentFolderID = "ABC123";

link = '<br/>Link to Folder: <a href="https://drive.google.com/drive/folders/' + parentFolderID + '" target="_blank">Open Folder</a>';

html = '<div>Hello World</div>' + link;

return html; 

Kumar Shuvam

unread,
Oct 14, 2021, 3:52:55 PM10/14/21
to Google Apps Script Community

I want something like not showing the link but has the string link to the url?

Andrew Roberts

unread,
Oct 14, 2021, 3:53:34 PM10/14/21
to Google Apps Script Community
Where is the string: a web app, Google Doc, Google sheet ...
Reply all
Reply to author
Forward
0 new messages