overleaf/services/web/app/src/Features/Email/EmailMessageHelper.js

8 lines
160 B
JavaScript
Raw Normal View History

function displayLink(text, url, isPlainText) {
return isPlainText ? `${text} (${url})` : `<a href="${url}">${text}</a>`
}
module.exports = {
displayLink
}