Created
April 19, 2017 18:45
-
-
Save Kamilnaja/b93c8dd8223b7eda7a4c2c619840d8ab to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Handlebars.registerHelper("makeLink", function(text, url) { | |
text = Handlebars.Utils.escapeExpression(text); | |
url = Handlebars.Utils.escapeExpression(url); | |
var theLink = '<a href="' + url + '">' + text + '</a>'; | |
return new Handlebars.SafeString(theLink); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment