+1
-1
@@ -65,7 +65,7 @@ embedded in them, as well as the text for a link:
|
||||
|
||||
```js
|
||||
Handlebars.registerHelper('link_to', function() {
|
||||
return "<a href='" + this.url + "'>" + this.body + "</a>";
|
||||
return new Handlebars.SafeString("<a href='" + this.url + "'>" + this.body + "</a>");
|
||||
});
|
||||
|
||||
var context = { posts: [{url: "/hello-world", body: "Hello World!"}] };
|
||||
|
||||
Reference in New Issue
Block a user